package gsl

  1. Overview
  2. Docs

Vector of complex numbers implemented with a float array

type complex_vector_flat = private {
  1. data : float array;
  2. off : int;
  3. len : int;
  4. 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
OCaml

Innovation. Community. Security.