package gsl

  1. Overview
  2. Docs

Matrices of complex number simplemented with float array

type complex_mat_flat = private {
  1. data : float array;
  2. off : int;
  3. dim1 : int;
  4. dim2 : int;
  5. 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
val add : matrix -> matrix -> unit
val sub : matrix -> matrix -> unit
val mul_elements : matrix -> matrix -> unit
val div_elements : matrix -> matrix -> unit
val scale : matrix -> float -> unit
val add_constant : matrix -> float -> unit
val add_diagonal : matrix -> Gsl_complex.complex -> unit
val is_null : matrix -> bool
val swap_rows : matrix -> int -> int -> unit
val swap_columns : matrix -> int -> int -> unit
val swap_rowcol : matrix -> int -> int -> unit
val transpose : matrix -> matrix -> unit
val transpose_in_place : matrix -> unit
val submatrix : matrix -> k1:int -> k2:int -> n1:int -> n2:int -> matrix
val column : matrix -> int -> 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
OCaml

Innovation. Community. Security.