shark::blas Namespace Reference

Functions

template<class X , class R >
X::value_type createHouseholderReflection (vector_expression< X, cpu_tag > const &x, vector_expression< R, cpu_tag > &reflection)
 Generates a Householder reflection from a vector to use with applyHouseholderLeft/Right. More...
 
template<class Mat , class R , class T , class Device >
void applyHouseholderOnTheRight (matrix_expression< Mat, Device > &matrix, vector_expression< R, Device > const &reflection, T beta)
 
template<class Mat , class R , class T , class Device >
void applyHouseholderOnTheLeft (matrix_expression< Mat, Device > &matrix, vector_expression< R, Device > const &reflection, T const &beta)
 rotates a matrix using a householder reflection More...
 
template<class Mat , class R , class T , class Device >
void applyHouseholderOnTheLeft (temporary_proxy< Mat > matrix, vector_expression< R, Device > const &reflection, T const &beta)
 rotates a matrix using a householder reflection More...
 
template<class MatrixT >
void randomRotationMatrix (random::rng_type &rng, matrix_container< MatrixT, cpu_tag > &matrixC)
 Initializes a matrix such that it forms a random rotation matrix. More...
 
RealMatrix randomRotationMatrix (random::rng_type &rng, size_t size)
 Creates a random rotation matrix with a certain size using the random number generator rng. More...