Main Page | Modules | Class List | File List | Class Members | File Members

vec_gen.c File Reference

#include <stdarg.h>
#include <gandalf/linalg/vec_gen.h>
#include <gandalf/linalg/mat_gen.h>
#include <gandalf/linalg/mat_symmetric.h>
#include <gandalf/linalg/clapack.h>
#include <gandalf/linalg/cblas.h>
#include <gandalf/common/allocate.h>
#include <gandalf/common/misc_error.h>
#include <gandalf/common/endian_io.h>

Functions

Gan_Bool gan_vec_realloc (Gan_Vector *x, unsigned long rows)
void gan_vec_free (Gan_Vector *x)
 Free a vector.
Gan_Vectorgan_vec_set_size (Gan_Vector *x, unsigned long rows)
 Set size of vector.
Gan_Vectorgan_vec_fill_va (Gan_Vector *x, unsigned long rows,...)
 Fill vector from variable argument list.
Gan_Vectorgan_vec_fill_vap (Gan_Vector *x, unsigned long rows, va_list *aptr)
 Fill vector from variable argument list.
Gan_Vectorgan_vec_fill_const_q (Gan_Vector *x, unsigned long rows, double value)
 Fill all elements of a vector with the same value.
Gan_Bool gan_vec_read_va (const Gan_Vector *x, unsigned long rows,...)
 Read vector from variable argument list.
Gan_Vectorgan_vec_copy_q (const Gan_Vector *x, Gan_Vector *y)
 Copy vector.
Gan_Vectorgan_vec_scale_q (Gan_Vector *x, double a, Gan_Vector *y)
 Multiply vector by scalar.
Gan_Vectorgan_vec_add_q (Gan_Vector *x, Gan_Vector *y, Gan_Vector *z)
 Add two vectors and write result into a third.
Gan_Vectorgan_vec_sub_q (Gan_Vector *x, Gan_Vector *y, Gan_Vector *z)
 Subtract two vectors and write result into a third.
double gan_vec_dot (const Gan_Vector *x, const Gan_Vector *y)
 Vector dot product.
Gan_Matrixgan_vec_outer_q (const Gan_Vector *x, const Gan_Vector *y, Gan_Matrix *A)
 Vector outer product.
Gan_SquMatrixgan_vec_outer_sym_q (const Gan_Vector *x, Gan_SquMatrix *A)
 Vector outer product with self.
Gan_Vectorgan_vec_insert (Gan_Vector *x, unsigned long rx, const Gan_Vector *y, unsigned long ry, unsigned long rows)
 Insert part of vector in another vector.
Gan_Vectorgan_vec_insert_mat (Gan_Vector *x, unsigned long rx, const Gan_Matrix *A, unsigned long ra, unsigned long ca, unsigned long rows)
 Insert part of a column of a matrix in a vector.
Gan_Vectorgan_vec_insert_matT (Gan_Vector *x, unsigned long rx, const Gan_Matrix *A, unsigned long ra, unsigned long ca, unsigned long rows)
 Insert part of a row of a matrix in 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_Bool gan_vec_fprint (FILE *fp, const Gan_Vector *x, const char *prefix, int indent, const char *fmt)
 Print vector to file pointer.
Gan_Vectorgan_vec_fscanf_q (FILE *fp, Gan_Vector *x, char *prefix, int prefix_len)
 Read vector from file.
Gan_Bool gan_vec_fwrite (FILE *fp, const Gan_Vector *x, gan_uint32 magic_number)
 Print vector to binary file pointer.
Gan_Vectorgan_vec_fread_q (FILE *fp, Gan_Vector *x, gan_uint32 *magic_number)
 Read vector from file.
void gan_vec_db (const Gan_Vector *x)

Detailed Description

Module: Generic column vectors (double precision)

Part of: Gandalf Library

Version:
1.32
Date:
2006/03/15 15:16:09
Author:
pm
Copyright: (c) 2000 Imagineer Software Limited
Generated on Fri Mar 17 12:44:53 2006 by  doxygen 1.3.9.1