Skip to content

Commit

Permalink
Fixed documentation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mmottl committed Nov 30, 2024
1 parent 215cffb commit 0ae6049
Show file tree
Hide file tree
Showing 16 changed files with 799 additions and 528 deletions.
2 changes: 2 additions & 0 deletions src/CZ.mli
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

open Bigarray

(** {3 PrecDocxx-precision Complex Module} *)

type prec = complexxx_elt
type num_type = Complex.t

Expand Down
2 changes: 2 additions & 0 deletions src/SD.mli
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

open Bigarray

(** {3 PrecDocxx-precision Real Module} *)

type prec = floatxx_elt
type num_type = float

Expand Down
8 changes: 6 additions & 2 deletions src/common.mli
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,17 @@ type int_vec = (int, int_elt, fortran_layout) Array1.t
(** Type of OCaml integer vectors. *)

val create_int_vec : int -> int_vec
(** [create_int_vec n] @return an int-vector with [n] rows. *)
(** [create_int_vec n]
@return an int-vector with [n] rows. *)

type int32_vec = (int32, int32_elt, fortran_layout) Array1.t
(** Type of 32bit Fortran integer vectors. *)

val create_int32_vec : int -> int32_vec
(** [create_int32_vec n] @return an int32-vector with [n] rows. *)
(** [create_int32_vec n]
@return an int32-vector with [n] rows. *)

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]
Expand Down
4 changes: 4 additions & 0 deletions src/config/make_prec_dep.ml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ let () =
("FPREC", "S");
("floatxx", "float32");
("Floatxx", "Float32");
("PrecDocxx", "Single");
("num_type_arg", "(float [@unboxed])");
]
and float64 =
Expand All @@ -248,6 +249,7 @@ let () =
("FPREC", "D");
("floatxx", "float64");
("Floatxx", "Float64");
("PrecDocxx", "Double");
("num_type_arg", "(float [@unboxed])");
]
and complex32 =
Expand All @@ -259,6 +261,7 @@ let () =
("Floatxx", "Float32");
("complexxx", "complex32");
("Complexxx", "Complex32");
("PrecDocxx", "Single");
("num_type_arg", "num_type");
]
and complex64 =
Expand All @@ -270,6 +273,7 @@ let () =
("Floatxx", "Float64");
("complexxx", "complex64");
("Complexxx", "Complex64");
("PrecDocxx", "Double");
("num_type_arg", "num_type");
]
in
Expand Down
69 changes: 39 additions & 30 deletions src/impl_CZ.mli
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
open Common
open Complexxx

(** {6 BLAS-1 interface} *)
(** {4 BLAS-1 Interface} *)

val dotu :
?n:int ->
Expand Down Expand Up @@ -65,7 +65,7 @@ val dotc :
@param ofsy default = 1
@param incy default = 1 *)

(** {6 LAPACK interface} *)
(** {4 LAPACK Interface} *)

(* LANSY *)

Expand Down Expand Up @@ -93,14 +93,15 @@ val lansy :
(* GECON *)

val gecon_min_lwork : int -> int
(** [gecon_min_lwork n] @return the minimum length of the work array
used by the [gecon]-function.
@param n the logical dimensions of the matrix given to
the [gecon]-function *)
(** [gecon_min_lwork n]
@return the minimum length of the work array used by the [gecon]-function.
@param n the logical dimensions of the matrix given to the [gecon]-function *)

val gecon_min_lrwork : int -> int
(** [gecon_min_lrwork n] @return the minimum length of the rwork array
used by the [gecon]-function.
(** [gecon_min_lrwork n]
@return the minimum length of the rwork array used by the [gecon]-function.
@param n the logical dimensions of the matrix given to [gecon]-function *)

val gecon :
Expand All @@ -126,10 +127,10 @@ val gecon :
(* SYCON *)

val sycon_min_lwork : int -> int
(** [sycon_min_lwork n] @return the minimum length of the work array
used by the [sycon]-function.
@param n the logical dimensions of the matrix given to
the [sycon]-function *)
(** [sycon_min_lwork n]
@return the minimum length of the work array used by the [sycon]-function.
@param n the logical dimensions of the matrix given to the [sycon]-function *)

val sycon :
?n:int ->
Expand All @@ -142,6 +143,7 @@ val sycon :
mat ->
float
(** [sycon ?n ?up ?ipiv ?anorm ?work ?ar ?ac a]
@return
estimate of the reciprocal of the condition number of symmetric matrix [a]
@param n default = available number of columns of matrix [a]
Expand All @@ -153,14 +155,15 @@ val sycon :
(* POCON *)

val pocon_min_lwork : int -> int
(** [pocon_min_lwork n] @return the minimum length of the work array
used by the [pocon]-function.
@param n the logical dimensions of the matrix given to
the [pocon]-function *)
(** [pocon_min_lwork n]
@return the minimum length of the work array used by the [pocon]-function.
@param n the logical dimensions of the matrix given to the [pocon]-function *)

val pocon_min_lrwork : int -> int
(** [pocon_min_lrwork n] @return the minimum length of the rwork array
used by the [pocon]-function.
(** [pocon_min_lrwork n]
@return the minimum length of the rwork array used by the [pocon]-function.
@param n the logical dimensions of the matrix given to [pocon]-function *)

val pocon :
Expand All @@ -184,7 +187,7 @@ val pocon :
@param rwork default = automatically allocated workspace
@param anorm default = 1-norm of the matrix [a] as returned by [lange] *)

(** {7 General Schur factorization} *)
(** {5 General Schur Factorization} *)

val gees :
?n:int ->
Expand All @@ -203,16 +206,20 @@ val gees :
for details about arguments.
@return (sdim, w, vs) *)

(** {7 General SVD routines} *)
(** {5 General SVD Routines} *)

val gesvd_min_lwork : m:int -> n:int -> int
(** [gesvd_min_lwork ~m ~n] @return the minimum length of the work array
used by the [gesvd]-function for matrices with [m] rows and [n]
columns. *)
(** [gesvd_min_lwork ~m ~n]
@return
the minimum length of the work array used by the [gesvd]-function for
matrices with [m] rows and [n] columns. *)

val gesvd_lrwork : m:int -> n:int -> int
(** [gesvd_lrwork m n] @return the (minimum) length of the rwork array
used by the [gesvd]-function. *)
(** [gesvd_lrwork m n]
@return
the (minimum) length of the rwork array used by the [gesvd]-function. *)

val gesvd_opt_lwork :
?m:int ->
Expand Down Expand Up @@ -250,16 +257,18 @@ val gesvd :
mat ->
rvec * mat * mat

(** {7 General eigenvalue problem (simple drivers)} *)
(** {5 General Eigenvalue Problem (simple drivers)} *)

val geev_min_lwork : int -> int
(** [geev_min_lwork n] @return the minimum length of the work array
used by the [geev]-function.
(** [geev_min_lwork n]
@return the minimum length of the work array used by the [geev]-function.
@param n the logical dimensions of the matrix given to [geev]-function *)

val geev_min_lrwork : int -> int
(** [geev_min_lrwork n] @return the minimum length of the rwork array
used by the [geev]-function.
(** [geev_min_lrwork n]
@return the minimum length of the rwork array used by the [geev]-function.
@param n the logical dimensions of the matrix given to [geev]-function *)

val geev_opt_lwork :
Expand Down
Loading

0 comments on commit 0ae6049

Please sign in to comment.