vSMC
vSMC: Scalable Monte Carlo
Namespaces | Macros | Functions
cblas.hpp File Reference
#include <vsmc/internal/config.h>
#include <vsmc/internal/defines.hpp>
#include <cmath>
#include <numeric>
#include <mkl.h>

Go to the source code of this file.

Namespaces

 vsmc
 

Macros

#define VSMC_CBLAS_INT   MKL_INT
 

Functions

template<typename T >
vsmc::asum (std::size_t n, const T *x, std::size_t incx)
 Computes the sum of magnitudes of the vector elements. More...
 
float vsmc::asum (std::size_t n, const float *x, std::size_t incx)
 
double vsmc::asum (std::size_t n, const double *x, std::size_t incx)
 
template<typename T >
void vsmc::axpy (std::size_t n, T a, const T *x, std::size_t incx, T *y, std::size_t incy)
 Computes a vector-scalar product and adds the result to a vector. More...
 
void vsmc::axpy (std::size_t n, float a, const float *x, std::size_t incx, float *y, std::size_t incy)
 
void vsmc::axpy (std::size_t n, double a, const double *x, std::size_t incx, double *y, std::size_t incy)
 
template<typename T >
void vsmc::copy (std::size_t n, const T *x, std::size_t incx, T *y, std::size_t incy)
 Copies vector to another vector. More...
 
void vsmc::copy (std::size_t n, const float *x, std::size_t incx, float *y, std::size_t incy)
 
void vsmc::copy (std::size_t n, const double *x, std::size_t incx, double *y, std::size_t incy)
 
template<typename T >
vsmc::dot (std::size_t n, const T *x, std::size_t incx, const T *y, std::size_t incy)
 Computes a vector-vector dot product. More...
 
float vsmc::dot (std::size_t n, const float *x, std::size_t incx, const float *y, std::size_t incy)
 
double vsmc::dot (std::size_t n, const double *x, std::size_t incx, const double *y, std::size_t incy)
 
template<typename T >
void vsmc::gemv (MatrixOrder order, MatrixTrans trans, std::size_t m, std::size_t n, T alpha, const T *A, std::size_t lda, const T *x, std::size_t incx, T beta, T *y, std::size_t incy)
 Computes a matrix-vector product using a general matrix. More...
 
void vsmc::gemv (MatrixOrder order, MatrixTrans trans, std::size_t m, std::size_t n, float alpha, const float *A, std::size_t lda, const float *x, std::size_t incx, float beta, float *y, std::size_t incy)
 
void vsmc::gemv (MatrixOrder order, MatrixTrans trans, std::size_t m, std::size_t n, double alpha, const double *A, std::size_t lda, const double *x, std::size_t incx, double beta, double *y, std::size_t incy)
 
template<typename T >
vsmc::nrm2 (std::size_t n, const T *x, std::size_t incx)
 Computes the Euclidean norm of a vector. More...
 
float vsmc::nrm2 (std::size_t n, const float *x, std::size_t incx)
 
double vsmc::nrm2 (std::size_t n, const double *x, std::size_t incx)
 
template<typename T >
void vsmc::scal (std::size_t n, T a, T *x, std::size_t incx)
 Computes the product of a vector by a scalar. More...
 
void vsmc::scal (std::size_t n, float a, float *x, std::size_t incx)
 
void vsmc::scal (std::size_t n, double a, double *x, std::size_t incx)
 

Macro Definition Documentation

#define VSMC_CBLAS_INT   MKL_INT

Definition at line 42 of file cblas.hpp.