BCLS: Bound Constrained Least Squares

Version 0.1

cblas.h File Reference

#include <math.h>
#include <stddef.h>

Include dependency graph for cblas.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define OFFSET(N, incX)   ((incX) > 0 ? 0 : ((N) - 1) * (-(incX)))

Enumerations

enum  CBLAS_ORDER { CblasRowMajor = 101, CblasColMajor = 102 }
enum  CBLAS_TRANSPOSE { CblasNoTrans = 111, CblasTrans = 112, CblasConjTrans = 113 }

Functions

void cblas_daxpy (const int N, const double alpha, const double *X, const int incX, double *Y, const int incY)
void cblas_dcopy (const int N, const double *X, const int incX, double *Y, const int incY)
double cblas_ddot (const int N, const double *X, const int incX, const double *Y, const int incY)
double cblas_dnrm2 (const int N, const double *X, const int incX)
void cblas_dscal (const int N, const double alpha, double *X, const int incX)
void cblas_dgemv (const enum CBLAS_ORDER order, const enum CBLAS_TRANSPOSE TransA, const int M, const int N, const double alpha, const double *A, const int lda, const double *X, const int incX, const double beta, double *Y, const int incY)


Detailed Description

CBLAS library header file.

Definition in file cblas.h.


Define Documentation

#define OFFSET ( N,
incX   )     ((incX) > 0 ? 0 : ((N) - 1) * (-(incX)))

Definition at line 38 of file cblas.h.

Referenced by cblas_daxpy(), cblas_dcopy(), cblas_ddot(), and cblas_dscal().


Enumeration Type Documentation

enum CBLAS_ORDER

Enumerator:
CblasRowMajor 
CblasColMajor 

Definition at line 40 of file cblas.h.

enum CBLAS_TRANSPOSE

Enumerator:
CblasNoTrans 
CblasTrans 
CblasConjTrans 

Definition at line 41 of file cblas.h.


Function Documentation

void cblas_daxpy ( const int  N,
const double  alpha,
const double *  X,
const int  incX,
double *  Y,
const int  incY 
)

Parameters:
[in] N 
[in] alpha 
[in] X 
[in] incX 
[in,out] Y 
[in] incY 

Definition at line 55 of file bccblas.c.

References OFFSET.

Referenced by aprod_free_lsqr(), bcls_cgls(), bcls_proj_backtrack(), and bcls_solver().

void cblas_dcopy ( const int  N,
const double *  X,
const int  incX,
double *  Y,
const int  incY 
)

Parameters:
[in] N 
[in] X 
[in] incX 
[out] Y 
[in] incY 

Definition at line 95 of file bccblas.c.

References OFFSET.

Referenced by aprod_free_lsqr(), bcls_cgls(), bcls_newton_step(), bcls_solver(), and lsqr().

double cblas_ddot ( const int  N,
const double *  X,
const int  incX,
const double *  Y,
const int  incY 
)

Parameters:
[in] N 
[in] X 
[in] incX 
[in] Y 
[in] incY 
Returns:
Dot product of X and Y.

Definition at line 120 of file bccblas.c.

References OFFSET.

Referenced by bcls_proj_backtrack(), and bcls_solver().

void cblas_dgemv ( const enum CBLAS_ORDER  order,
const enum CBLAS_TRANSPOSE  TransA,
const int  M,
const int  N,
const double  alpha,
const double *  A,
const int  lda,
const double *  X,
const int  incX,
const double  beta,
double *  Y,
const int  incY 
)

double cblas_dnrm2 ( const int  N,
const double *  X,
const int  incX 
)

Parameters:
[in] N 
[in] X 
[in] incX 
Returns:
Two-norm of X.

Definition at line 145 of file bccblas.c.

Referenced by bcls_cgls(), bcls_compute_anorm(), bcls_solver(), and lsqr().

void cblas_dscal ( const int  N,
const double  alpha,
double *  X,
const int  incX 
)

Parameters:
[in] N 
[in] alpha 
[in,out] X 
[in] incX 

Definition at line 184 of file bccblas.c.

References OFFSET.

Referenced by bcls_cgls(), bcls_newton_step_cgls(), bcls_newton_step_lsqr(), bcls_solver(), and lsqr().

Generated on Sun Mar 4 22:50:03 2007 by Doxygen 1.5.1