Module Gsl.Matrix_complex_flat

type complex_mat_flat = private {
data : float array;
off : int;
dim1 : int;
dim2 : int;
tda : int;
}
type matrix = complex_mat_flat
val create : ?⁠init:Gsl_complex.complex -> int -> int -> matrix
val dims : matrix -> int * int
val of_arrays : Gsl_complex.complex array array -> matrix
val of_array : Gsl_complex.complex array -> int -> int -> matrix
val to_arrays : matrix -> Gsl_complex.complex array array
val to_array : matrix -> Gsl_complex.complex array
val of_complex_array : float array -> int -> int -> matrix
val to_complex_array : matrix -> Gsl_complex.complex_array
val get : matrix -> int -> int -> Gsl_complex.complex
val set : matrix -> int -> int -> Gsl_complex.complex -> unit
val set_all : matrix -> Gsl_complex.complex -> unit
val set_zero : matrix -> unit
val set_id : matrix -> unit
val memcpy : src:matrix -> dst:matrix -> unit
val copy : matrix -> matrix
external add : matrix -> matrix -> unit = "ml_gsl_matrix_complex_add"
external sub : matrix -> matrix -> unit = "ml_gsl_matrix_complex_sub"
external mul_elements : matrix -> matrix -> unit = "ml_gsl_matrix_complex_mul"
external div_elements : matrix -> matrix -> unit = "ml_gsl_matrix_complex_div"
external scale : matrix -> float -> unit = "ml_gsl_matrix_complex_scale"
external add_constant : matrix -> float -> unit = "ml_gsl_matrix_complex_add_constant"
external add_diagonal : matrix -> Gsl_complex.complex -> unit = "ml_gsl_matrix_complex_add_diagonal"
external is_null : matrix -> bool = "ml_gsl_matrix_complex_isnull"
external swap_rows : matrix -> int -> int -> unit = "ml_gsl_matrix_complex_swap_rows"
external swap_columns : matrix -> int -> int -> unit = "ml_gsl_matrix_complex_swap_columns"
external swap_rowcol : matrix -> int -> int -> unit = "ml_gsl_matrix_complex_swap_rowcol"
external transpose : matrix -> matrix -> unit = "ml_gsl_matrix_complex_transpose_memcpy"
external transpose_in_place : matrix -> unit = "ml_gsl_matrix_complex_transpose"
val submatrix : matrix -> k1:int -> k2:int -> n1:int -> n2:int -> matrix
val row : matrix -> int -> Vector_complex_flat.vector
val column : matrix -> int -> Vector_complex_flat.vector
val diagonal : matrix -> Vector_complex_flat.vector
val subdiagonal : matrix -> int -> Vector_complex_flat.vector
val superdiagonal : matrix -> int -> Vector_complex_flat.vector
val view_complex_array : Gsl_complex.complex_array -> ?⁠off:int -> int -> ?⁠tda:int -> int -> matrix
val view_vector : Vector_complex_flat.vector -> ?⁠off:int -> int -> ?⁠tda:int -> int -> matrix