Template Class VectorHandlerCpu

Class Documentation

template<typename ScalarT, typename IdxT>
class VectorHandlerCpu

Implements dense (multi)vector kernels that operate on HOST data.

All methods in this class assume the vectors passed in have up-to-date data on HOST and operate directly on the raw HOST arrays.

Author

Slaven Peles peless@ornl.gov

Public Functions

void gemv(char transpose, IdxT k, const ScalarT alpha, const ScalarT beta, Vector<ScalarT, IdxT> *V, Vector<ScalarT, IdxT> *y, Vector<ScalarT, IdxT> *x)

gemv: if transpose = N (no), x = beta*x + alpha*V*y, where x is [n x 1], V is [n x k] and y is [k x 1]. if transpose = T (yes), x = beta*x + alpha*V^T*y, where x is [k x 1], V is [n x k] and y is [n x 1].