Great! Thanks for the clarification. Patrick
On Tuesday, October 22, 2013 12:21:33 PM UTC-4, Mikera wrote: > > You probably want: > > (shape M) ;; returns a vector [4 6] for a 4x6 Matrix > > Though you can also access the individual dimension sizes as follows, > which is sometimes useful: > > (dimension-count M 0) ;; returns 4 as the count of the first dimension > (dimension-count M 1) ;; returns 6 as the count of the second dimension > > More generally, check out the clojure.core.matrix namespace for all the > public API functions. > > On Tuesday, 22 October 2013 23:30:01 UTC+8, P Martin wrote: >> >> Hi there, >> >> I am using vectors-clj to do some optimization work, but I am having >> trouble getting the dimensions of the matrices I build. I come from Matlab, >> so I am used to commands such as "size(M)" which returns the (n,m) >> dimensions of the matrix M. I am including clojure.core.matrix in my code >> and I saw a call for "get-shape" online, but it does not appear. Do I need >> to add more use commands to get a supporting api? >> >> I am using the following commands to bring vectorz-clj into my namespace: >> >> (use '[clojure.core.matrix :as mat]) >> >> (set-current-implementation :vectorz) >> >> Thanks! >> >> Patrick >> > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.