BeBOP Optimized Sparse Kernel Interface Library
1.0.1h
|
BeBOP wrappers around the dense BLAS routines. More...
#include <oski/vecview.h>
Go to the source code of this file.
Defines | |
#define | INC_OSKI_BLAS_H |
oski/blas.h included. | |
#define | ARE_VECVIEW_DIMS_EQUAL(x, y) (((x)->num_rows == (y)->num_rows) && ((x)->num_cols == (y)->num_cols)) |
Returns 1 <==> the given vector views have equal logical dimensions. | |
Name mangling. | |
#define | oski_ZeroVecView MANGLE_(oski_ZeroVecView) |
#define | oski_ConjVecView MANGLE_(oski_ConjVecView) |
#define | oski_ScaleVecView MANGLE_(oski_ScaleVecView) |
#define | oski_AXPYVecView MANGLE_(oski_AXPYVecView) |
#define | oski_RectScaledIdentityMult MANGLE_(oski_RectScaledIdentityMult) |
Functions | |
int | oski_ZeroVecView (oski_vecview_t x) |
Set all elements of a vector view ![]() | |
int | oski_ScaleVecView (oski_vecview_t x, oski_value_t alpha) |
Computes ![]() | |
int | oski_ConjVecView (oski_vecview_t x) |
Computes the complex conjugate of a vector view, i.e., ![]() | |
int | oski_AXPYVecView (const oski_vecview_t x, oski_value_t alpha, oski_vecview_t y) |
Computes ![]() | |
int | oski_RectScaledIdentityMult (oski_value_t alpha, const oski_vecview_t x, oski_vecview_t y) |
Computes ![]() ![]() ![]() ![]() ![]() | |
int | oski_DenseMatMult (const oski_vecview_t A, oski_matop_t opA, oski_value_t alpha, const oski_vecview_t x, oski_value_t beta, const oski_vecview_t y) |
Computes ![]() ![]() |
BeBOP wrappers around the dense BLAS routines.
#define INC_OSKI_BLAS_H |
oski/blas.h included.
int oski_RectScaledIdentityMult | ( | oski_value_t | alpha, |
const oski_vecview_t | x, | ||
oski_vecview_t | y | ||
) |
Computes , where
is an
matrix such that
for all
.
References oski_vecstruct_t::colinc, oski_vecstruct_t::num_cols, oski_vecstruct_t::num_rows, oski_vecstruct_t::orient, oski_vecstruct_t::rowinc, oski_vecstruct_t::stride, and oski_vecstruct_t::val.
int oski_ScaleVecView | ( | oski_vecview_t | x, |
oski_value_t | alpha | ||
) |
Computes .
[in,out] | x | A valid vector view. |
[in] | alpha | Scalar multiplier. |
References ERR_NOT_IMPLEMENTED, IS_VAL_ONE, IS_VAL_ZERO, LAYOUT_COLMAJ, LAYOUT_ROWMAJ, oski_vecstruct_t::num_cols, oski_vecstruct_t::num_rows, oski_vecstruct_t::orient, OSKI_ERR_NOT_IMPLEMENTED, oski_vecstruct_t::stride, and oski_vecstruct_t::val.
int oski_ZeroVecView | ( | oski_vecview_t | x | ) |
Set all elements of a vector view to zero.
[in] | x | Valid vector view. |
References ERR_BAD_VECVIEW, INVALID_VEC, LAYOUT_COLMAJ, LAYOUT_ROWMAJ, oski_vecstruct_t::num_cols, oski_vecstruct_t::num_rows, oski_vecstruct_t::orient, OSKI_ERR_BAD_VEC, oski_vecstruct_t::stride, oski_vecstruct_t::val, ZeroDenseMatColmaj(), and ZeroDenseMatRowmaj().