Main Page   Modules   Compound List   File List   Compound Members   File Members  

matvec_blas.h File Reference

#include <gandalf/common/misc_defs.h>
#include <gandalf/linalg/mat_gen.h>
#include <gandalf/linalg/mat_square.h>
#include <gandalf/linalg/vec_gen.h>

Go to the source code of this file.

Functions

Gan_Vectorgan_blas_axpy (Gan_Vector *y, double a, Gan_Vector *x)
 Function to apply the BLAS operation axpy.

Gan_Vectorgan_blas_gemv (Gan_Vector *y, double alpha, Gan_Matrix *A, Gan_TposeFlag A_tr, Gan_Vector *x, double beta)
 Function to apply the BLAS operation gemv.

Gan_Vectorgan_blas_scal (Gan_Vector *x, double a)
 Function to apply the BLAS operation scal.

Gan_Matrixgan_blas_ger (Gan_Matrix *A, Gan_Vector *x, Gan_Vector *y, double a)
 Function to apply the BLAS operation ger.

Gan_SquMatrixgan_blas_spr (Gan_SquMatrix *A, Gan_Vector *x, double a)
 Function to apply the BLAS operation spr.

Gan_Matrixgan_blas_gemm (Gan_Matrix *C, double alpha, Gan_Matrix *A, Gan_TposeFlag A_tr, Gan_Matrix *B, Gan_TposeFlag B_tr, double beta)
 Function to apply the BLAS operation gemm.


Detailed Description

Module: C BLAS wrapper functions (double precision)

Part of: Gandalf Library

Revision: Last edited: Author:

Copyright: (c) 2000 Imagineer Software Limited


Function Documentation

Gan_Vector* gan_blas_axpy Gan_Vector   y,
double    a,
Gan_Vector   x
 

Function to apply the BLAS operation axpy.

Returns:
Result vector y.
Function to apply the BLAS operation axpy:

for vectors x, y and scalar a.

Gan_Matrix* gan_blas_gemm Gan_Matrix   C,
double    alpha,
Gan_Matrix   A,
Gan_TposeFlag    A_tr,
Gan_Matrix   B,
Gan_TposeFlag    B_tr,
double    beta
 

Function to apply the BLAS operation gemm.

Returns:
Matrix C.
Function to apply the BLAS operation gemm:

for matrices A, B (either of which is optionally transposed) and C, and scalars alpha and beta.

Gan_Vector* gan_blas_gemv Gan_Vector   y,
double    alpha,
Gan_Matrix   A,
Gan_TposeFlag    A_tr,
Gan_Vector   x,
double    beta
 

Function to apply the BLAS operation gemv.

Returns:
Result vector y.
Function to apply the BLAS operation gemv:

for vectors x and y, matrix a (optionally transposed) and scalars alpha and beta.

Gan_Matrix* gan_blas_ger Gan_Matrix   A,
Gan_Vector   x,
Gan_Vector   y,
double    a
 

Function to apply the BLAS operation ger.

Returns:
Updated matrix A.
Function to apply the BLAS operation ger:

for generic matrix A, scalar a and vectors x and y.

Gan_Vector* gan_blas_scal Gan_Vector   x,
double    a
 

Function to apply the BLAS operation scal.

Returns:
Updated vector x.
Function to apply the BLAS operation scal:

for vector x and scalar a.

Gan_SquMatrix* gan_blas_spr Gan_SquMatrix   A,
Gan_Vector   x,
double    a
 

Function to apply the BLAS operation spr.

Returns:
Updated symmetric matrix A.
Function to apply the BLAS operation spr:

for symmetric matrix A, scalar a and vector x.


Generated on Mon Oct 13 16:14:45 2003 by doxygen1.3-rc1