Markus Mottl avatar Markus Mottl committed c6a6138

Renamed mat_of_vec to mat_from_vec

Comments (0)

Files changed (3)

              Thanks to Christophe Troestler <Christophe.Troestler@umons.ac.be>
              for contributing this large patch!
 
+             Renamed a function for consistency.  This breaks
+             backward-compatibility, but is extremely unlikely to affect
+             anybody so no major release:
+
+               * Common.mat_of_vec -> Common.mat_from_vec
+
 2010-11-21:  Added new function:
 
                * sbgv
 
 let create_int_vec n = Array1.create int32 fortran_layout n
 
-let mat_of_vec v =
+let mat_from_vec v =
   array2_of_genarray (reshape (genarray_of_array1 v) [| Array1.dim v; 1 |])
 
 type trans2 = [ `N | `T ]
 val create_int_vec : int -> int_vec
 (** [create_int_vec n] @return an int-vector with [n] rows. *)
 
-val mat_of_vec : ('a, 'b, 'c) Array1.t -> ('a, 'b, 'c) Array2.t
-(** [mat_of_vec a] converts the vector [a] into a matrix with
-    [Array1.dim a] rows and 1 column.  The data is shared between the
-    two matrices.  *)
+val mat_from_vec : ('a, 'b, 'c) Array1.t -> ('a, 'b, 'c) Array2.t
+(** [mat_from_vec a] converts the vector [a] into a matrix with [Array1.dim a]
+    rows and 1 column.  The data is shared between the two matrices. *)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.