Main Page   Modules   Compound List   File List   Compound Members   File Members  

Allocate/Free a General Size Vector
[General Size Vectors]


Functions

Gan_Bool gan_vec_realloc (Gan_Vector *x, unsigned long rows)
void gan_vec_free (Gan_Vector *x)
 Free a vector.

void gan_vec_free_va (Gan_Vector *x,...)
 Free a NULL-terminated variable argument list of vectors.

Gan_Vectorgan_vec_form_gen (Gan_Vector *x, unsigned long rows, double *data, size_t data_size)
Gan_Vectorgan_vec_alloc (unsigned long rows)
 Macro: Allocate and return a generic vector.

Gan_Vectorgan_vec_form (Gan_Vector *x, unsigned long rows)
 Macro: Form and return a generic vector.

Gan_Vectorgan_vec_form_data (Gan_Vector *x, unsigned long rows, void *data, size_t data_size)
 Macro: Form and return a generic vector.

Gan_Bool gan_vecf_realloc (Gan_Vector_f *x, unsigned long rows)
void gan_vecf_free (Gan_Vector_f *x)
 Free a vector.

void gan_vecf_free_va (Gan_Vector_f *x,...)
 Free a NULL-terminated variable argument list of vectors.

Gan_Vector_fgan_vecf_form_gen (Gan_Vector_f *x, unsigned long rows, float *data, size_t data_size)
Gan_Vector_fgan_vecf_alloc (unsigned long rows)
 Macro: Allocate and return a generic vector.

Gan_Vector_fgan_vecf_form (Gan_Vector_f *x, unsigned long rows)
 Macro: Form and return a generic vector.

Gan_Vector_fgan_vecf_form_data (Gan_Vector_f *x, unsigned long rows, void *data, size_t data_size)
 Macro: Form and return a generic vector.


Function Documentation

Gan_Vector* gan_vec_alloc unsigned long    rows
 

Macro: Allocate and return a generic vector.

Allocates and returns a generic column vector with given size rows.

Implemented as a macro call to gan_vec_form_gen().

See also:
gan_vec_form().

Gan_Vector* gan_vec_form Gan_Vector   x,
unsigned long    rows
 

Macro: Form and return a generic vector.

Forms and returns a generic column vector with given number of rows. If the x vector pointer is non-NULL, the given vector pointer is filled; otherwise x is passed as NULL and the vector is dynamically allocated.

Implemented as a macro call to gan_vec_form_gen().

See also:
gan_vec_alloc().

Gan_Vector* gan_vec_form_data Gan_Vector   x,
unsigned long    rows,
void *    data,
size_t    data_size
 

Macro: Form and return a generic vector.

Forms and returns a generic column vector with given number of rows. If the x vector pointer is non-NULL, the given vector pointer is filled; otherwise x is passed as NULL and the vector is dynamically allocated. Likewise if the provided data pointer is NULL, the vector data is dynamically allocated. Otherwise, data_size is the size of the data array in terms of double values.

Implemented as a macro call to gan_vec_form_gen().

See also:
gan_vec_alloc() and gan_vec_form().

void gan_vec_free Gan_Vector   x
 

Free a vector.

Free a generic vector.

void gan_vec_free_va Gan_Vector   x,
...   
 

Free a NULL-terminated variable argument list of vectors.

Returns:
No value.
Free a NULL-terminated variable argument list of vectors, starting with vector x.

Gan_Vector_f* gan_vecf_alloc unsigned long    rows
 

Macro: Allocate and return a generic vector.

Allocates and returns a generic column vector with given size rows.

Implemented as a macro call to gan_vecf_form_gen().

See also:
gan_vecf_form().

Gan_Vector_f* gan_vecf_form Gan_Vector_f   x,
unsigned long    rows
 

Macro: Form and return a generic vector.

Forms and returns a generic column vector with given number of rows. If the x vector pointer is non-NULL, the given vector pointer is filled; otherwise x is passed as NULL and the vector is dynamically allocated.

Implemented as a macro call to gan_vecf_form_gen().

See also:
gan_vecf_alloc().

Gan_Vector_f* gan_vecf_form_data Gan_Vector_f   x,
unsigned long    rows,
void *    data,
size_t    data_size
 

Macro: Form and return a generic vector.

Forms and returns a generic column vector with given number of rows. If the x vector pointer is non-NULL, the given vector pointer is filled; otherwise x is passed as NULL and the vector is dynamically allocated. Likewise if the provided data pointer is NULL, the vector data is dynamically allocated. Otherwise, data_size is the size of the data array in terms of double values.

Implemented as a macro call to gan_vecf_form_gen().

See also:
gan_vecf_alloc() and gan_vecf_form().

void gan_vecf_free Gan_Vector_f   x
 

Free a vector.

Free a generic vector.

void gan_vecf_free_va Gan_Vector_f   x,
...   
 

Free a NULL-terminated variable argument list of vectors.

Returns:
No value.
Free a NULL-terminated variable argument list of vectors, starting with vector x.


Generated on Mon Oct 13 16:15:00 2003 by doxygen1.3-rc1