Module Gsl_vector_complex_flat

module Gsl_vector_complex_flat: sig .. end
Vector of complex numbers implemented with a float array

type complex_vector_flat = private {
   data : float array;
   off : int;
   len : int;
   stride : int;
}
type vector = complex_vector_flat 

Operations


val create : ?init:Gsl_complex.complex -> int -> vector
val of_array : Gsl_complex.complex array -> vector
val to_array : vector -> Gsl_complex.complex array
val of_complex_array : Gsl_complex.complex_array -> vector
val to_complex_array : vector -> Gsl_complex.complex_array
val length : vector -> int
val get : vector -> int -> Gsl_complex.complex
val set : vector -> int -> Gsl_complex.complex -> unit
val set_all : vector -> Gsl_complex.complex -> unit
val set_zero : vector -> unit
val set_basis : vector -> int -> unit
val memcpy : vector -> vector -> unit
val copy : vector -> vector
val swap_element : vector -> int -> int -> unit
val reverse : vector -> unit

No-copy operations


val subvector : ?stride:int ->
vector ->
off:int -> len:int -> vector
val view_complex_array : ?stride:int ->
?off:int ->
?len:int -> Gsl_complex.complex_array -> vector
val real : vector -> Gsl_vector_flat.vector
val imag : vector -> Gsl_vector_flat.vector