1
(* ocamlgsl - OCaml interface to GSL *)
2
(* Copyright (�) 2002 - Olivier Andrieu *)
3
(* distributed under the terms of the GPL version 2 *)
5
(** Vector of complex numbers implemented with a [float array] *)
7
type complex_vector_flat =
13
type vector = complex_vector_flat
19
val create : ?init:complex -> int -> vector
20
val of_array : complex array -> vector
21
val to_array : vector -> complex array
23
val of_complex_array : complex_array -> vector
24
val to_complex_array : vector -> complex_array
26
val length : vector -> int
27
val get : vector -> int -> complex
28
val set : vector -> int -> complex -> unit
30
val set_all : vector -> complex -> unit
31
val set_zero : vector -> unit
32
val set_basis : vector -> int -> unit
34
val memcpy : vector -> vector -> unit
35
val copy : vector -> vector
37
val swap_element : vector -> int -> int -> unit
38
val reverse : vector -> unit
40
(** {3 No-copy operations} *)
42
val subvector : ?stride:int -> vector -> off:int -> len:int -> vector
43
val view_complex_array : ?stride:int -> ?off:int -> ?len:int -> complex_array -> vector
45
val real : vector -> Gsl_vector_flat.vector
46
val imag : vector -> Gsl_vector_flat.vector