module Gsl_vectmat: sig end
Real values
|
type vec = [ `V of Gsl_vector.vector | `VF of Gsl_vector_flat.vector]
val vec_convert : ?protect:bool ->
[< `A of float array
| `V of Gsl_vector.vector
| `VF of Gsl_vector_flat.vector] ->
[> vec]type mat = [ `M of Gsl_matrix.matrix | `MF of Gsl_matrix_flat.matrix]
val mat_convert : ?protect:bool ->
[< `A of float array * int * int
| `AA of float array array
| `M of Gsl_matrix.matrix
| `MF of Gsl_matrix_flat.matrix] ->
[> mat]val mat_flat : ?protect:bool ->
[< `A of float array * int * int
| `AA of float array array
| `M of Gsl_matrix.matrix
| `MF of Gsl_matrix_flat.matrix] ->
Gsl_matrix_flat.matrix
Complex values
|
type cvec = [ `CV of Gsl_vector_complex.vector | `CVF of Gsl_vector_complex_flat.vector]
type cmat = [ `CM of Gsl_matrix_complex.matrix | `CMF of Gsl_matrix_complex_flat.matrix]
val cmat_convert : ?protect:bool ->
[< `CA of Gsl_complex.complex_array * int * int
| `CM of Gsl_matrix_complex.matrix
| `CMF of Gsl_matrix_complex_flat.matrix] ->
[> cmat]
Generic vector operations
|
val length : [< `CV of Gsl_vector_complex.vector
| `CVF of Gsl_vector_complex_flat.vector
| `V of Gsl_vector.vector
| `VF of Gsl_vector_flat.vector] ->
intval to_array : [< vec] -> float arrayval v_copy : [< vec] -> [> vec]val subvector : [< vec] -> off:int -> len:int -> [> vec]val v_memcpy : [< vec] -> [< vec] -> unitval v_add : [< vec] -> [< vec] -> unitval v_sub : [< vec] -> [< vec] -> unitval v_mul : [< vec] -> [< vec] -> unitval v_div : [< vec] -> [< vec] -> unitval v_max : [< vec] -> floatval v_min : [< vec] -> floatval v_minmax : [< vec] -> float * floatval v_max_index : [< vec] -> intval v_min_index : [< vec] -> intval v_minmax_index : [< vec] -> int * int
Generic matrix operations
|
val dims : [< `CM of Gsl_matrix_complex.matrix
| `CMF of Gsl_matrix_complex_flat.matrix
| `M of Gsl_matrix.matrix
| `MF of Gsl_matrix_flat.matrix] ->
int * intval tmp : [< mat] -> [> `M of Gsl_matrix.matrix]val to_arrays : [< mat] -> float array arrayval m_copy : [< mat] -> [> mat]val m_memcpy : [< mat] -> [< mat] -> unitval m_add : [< mat] -> [< mat] -> unitval m_sub : [< mat] -> [< mat] -> unitval m_mul : [< mat] -> [< mat] -> unitval m_div : [< mat] -> [< mat] -> unitval m_add_diagonal : [< mat] -> float -> unitval swap_rows : [< mat] -> int -> int -> unitval swap_columns : [< mat] -> int -> int -> unitval swap_rowcol : [< mat] -> int -> int -> unitval transpose : [< mat] -> [< mat] -> unitval transpose_in_place : [< mat] -> unit
Other generic operations
|
val is_null : [< `M of Gsl_matrix.matrix
| `MF of Gsl_matrix_flat.matrix
| `V of Gsl_vector.vector
| `VF of Gsl_vector_flat.vector] ->
boolval scale : [< `M of Gsl_matrix.matrix
| `MF of Gsl_matrix_flat.matrix
| `V of Gsl_vector.vector
| `VF of Gsl_vector_flat.vector] ->
float -> unitval add_constant : [< `M of Gsl_matrix.matrix
| `MF of Gsl_matrix_flat.matrix
| `V of Gsl_vector.vector
| `VF of Gsl_vector_flat.vector] ->
float -> unit