Markus Mottl avatar Markus Mottl committed 08b0fe9

Slight change of interface for Mat.scal_cols + cleanups

Comments (0)

Files changed (4)

   -> mat
 (** [syr ?n ?alpha ?up ?ofsx ?incx x ?ar ?ac a] see BLAS documentation!
 
-    @return vector [a], which is overwritten
+    @return matrix [a], which is overwritten
 
     @param n default = number of rows of [a]
     @param alpha default = 1.0
 external direct_scal_cols :
   m : int ->
   n : int ->
-  ofs : int ->
-  alphas : vec ->
   ar : int ->
   ac : int ->
   a : mat ->
+  ofs : int ->
+  alphas : vec ->
   unit = "lacaml_NPRECscal_cols_stub_bc" "lacaml_NPRECscal_cols_stub"
 
-let scal_cols ?m ?n ?ofs alphas ?(ar = 1) ?(ac = 1) a =
+let scal_cols ?m ?n ?(ar = 1) ?(ac = 1) a ?ofs alphas =
   let loc = "Lacaml.Impl.NPREC.Mat.scal_cols" in
   let m = get_dim1_mat loc a_str a ar m_str m in
   let n = get_dim2_mat loc a_str a ac n_str n in
   let ofs = get_ofs loc alphas_str ofs in
   ignore (get_dim_vec loc alphas_str ofs 1 alphas n_str (Some n));
-  direct_scal_cols ~m ~n ~ofs ~alphas ~ar ~ac ~a
+  direct_scal_cols ~m ~n ~ar ~ac ~a ~ofs ~alphas
 
 external direct_mat_axpy :
   m : int ->
 
 val scal_cols :
   ?m : int -> ?n : int ->
+  ?ar : int -> ?ac : int -> mat
   ?ofs : int -> vec ->
-  ?ar : int -> ?ac : int -> mat
   -> unit
-(** [scal_cols ?m ?n ?ofs alphas ?ar ?ac a] column-wise [scal] function
-    for matrices. *)
+(** [scal_cols ?m ?n ?ar ?ac a ?ofs alphas] column-wise [scal]
+    function for matrices. *)
 
 val axpy :
   ?m : int ->
 
 CAMLprim value LFUN(scal_cols_stub)(
   value vM, value vN,
-  value vOFSALPHAs,
-  value vALPHAs,
-  value vAR, value vAC, value vA)
+  value vAR, value vAC, value vA,
+  value vOFSALPHAs, value vALPHAs)
 {
   CAMLparam2(vALPHAs, vA);
 
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.