module Lacaml__common:sig
..end
Lacaml.common
contains definitions independent of the precision.
typetrans2 =
[ `N | `T ]
Transpose parameter (normal or transposed)
typeside =
[ `L | `R ]
Side parameter (left or right)
typediag =
[ `N | `U ]
Diagonal parameter (unit or non-unit)
typenorm2 =
[ `I | `O ]
Type of 1-norm (`O
) and infinity norm (`I
)
typenorm4 =
[ `F | `I | `M | `O ]
Type of 1-norm (`O
), infinity norm (`I
) and the Frobenius norm (`F
).
`M
is the maximum of the absolute values (not a true matrix norm).
typesvd_job =
[ `A | `N | `O | `S ]
SVD computation flags
typeschur_vectors =
[ `Compute_Schur_vectors | `No_Schur_vectors ]
GEES job option
typeeigen_value_sort =
[ `No_sort
| `Select_custom of Stdlib.Complex.t -> bool
| `Select_exterior_disk
| `Select_interior_disk
| `Select_left_plane
| `Select_right_plane ]
GEES eigenvalue sort option
exception InternalError of string
InternalError msg
gets raised when BLAS or LAPACK exhibit undefined
behaviour.
typeint_vec =
(int, Bigarray.int_elt, Bigarray.fortran_layout) Bigarray.Array1.t
Type of OCaml integer vectors.
val create_int_vec : int -> int_vec
create_int_vec n
n
rows.typeint32_vec =
(int32, Bigarray.int32_elt, Bigarray.fortran_layout) Bigarray.Array1.t
Type of 32bit Fortran integer vectors.
val create_int32_vec : int -> int32_vec
create_int32_vec n
n
rows.val mat_from_vec : ('a, 'b, 'c) Bigarray.Array1.t -> ('a, 'b, 'c) Bigarray.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.
Common types used for vector and matrix operations
module Types:sig
..end