~ubuntu-branches/ubuntu/raring/orpie/raring

« back to all changes in this revision

Viewing changes to gsl/gsl_vector_complex_flat.mli

  • Committer: Bazaar Package Importer
  • Author(s): Uwe Steinmann
  • Date: 2004-09-20 14:18:45 UTC
  • Revision ID: james.westby@ubuntu.com-20040920141845-j092sbrg4hd0nfsf
Tags: upstream-1.4.1
Import upstream version 1.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(* ocamlgsl - OCaml interface to GSL                        *)
 
2
(* Copyright (�) 2002 - Olivier Andrieu                     *)
 
3
(* distributed under the terms of the GPL version 2         *)
 
4
 
 
5
(** Vector of complex numbers implemented with a [float array] *)
 
6
 
 
7
type complex_vector_flat = 
 
8
    { data   : float array ;
 
9
      off    : int ;
 
10
      len    : int ;
 
11
      stride : int ; }
 
12
 
 
13
type vector = complex_vector_flat
 
14
 
 
15
(** {3 Operations} *)
 
16
 
 
17
open Gsl_complex
 
18
 
 
19
val create   : ?init:complex -> int -> vector
 
20
val of_array : complex array -> vector
 
21
val to_array : vector -> complex array
 
22
 
 
23
val of_complex_array : complex_array -> vector
 
24
val to_complex_array : vector -> complex_array
 
25
 
 
26
val length : vector -> int
 
27
val get : vector -> int -> complex
 
28
val set : vector -> int -> complex -> unit
 
29
 
 
30
val set_all   : vector -> complex -> unit
 
31
val set_zero  : vector -> unit
 
32
val set_basis : vector -> int -> unit
 
33
 
 
34
val memcpy : vector -> vector -> unit
 
35
val copy   : vector -> vector
 
36
 
 
37
val swap_element : vector -> int -> int -> unit
 
38
val reverse : vector -> unit
 
39
 
 
40
(** {3 No-copy operations} *)
 
41
 
 
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
 
44
 
 
45
val real : vector -> Gsl_vector_flat.vector
 
46
val imag : vector -> Gsl_vector_flat.vector
 
47