package gsl

  1. Overview
  2. Docs

Module Gsl.Vector_complex_flatSource

Vector of complex numbers implemented with a float array

Sourcetype complex_vector_flat = private {
  1. data : float array;
  2. off : int;
  3. len : int;
  4. stride : int;
}

Operations

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

No-copy operations

Sourceval subvector : ?stride:int -> vector -> off:int -> len:int -> vector
Sourceval view_complex_array : ?stride:int -> ?off:int -> ?len:int -> Gsl_complex.complex_array -> vector
OCaml

Innovation. Community. Security.