SHOGUN  6.1.3
Functions
LinalgNamespace.h File Reference

Go to the source code of this file.

Functions

template<typename T , template< typename > class Container>
LinalgBackendBase * infer_backend (const Container< T > &a)
 
template<typename T , template< typename > class Container>
LinalgBackendBase * infer_backend (const Container< T > &a, const Container< T > &b)
 
template<typename T >
void to_gpu (SGVector< T > &a, SGVector< T > &b)
 
template<typename T >
void to_gpu (SGMatrix< T > &a, SGMatrix< T > &b)
 
template<typename T , template< typename > class Container>
void to_gpu (Container< T > &a)
 
template<typename T >
void from_gpu (SGVector< T > &a, SGVector< T > &b)
 
template<typename T >
void from_gpu (SGMatrix< T > &a, SGMatrix< T > &b)
 
template<typename T , template< typename > class Container>
void from_gpu (Container< T > &a)
 
template<typename T >
void add (SGVector< T > &a, SGVector< T > &b, SGVector< T > &result, T alpha=1, T beta=1)
 
template<typename T >
void add (SGMatrix< T > &a, SGMatrix< T > &b, SGMatrix< T > &result, T alpha=1, T beta=1)
 
template<typename T , template< typename > class Container>
Container< T > add (Container< T > &a, Container< T > &b, T alpha=1, T beta=1)
 
template<typename T >
void add_col_vec (const SGMatrix< T > &A, index_t i, const SGVector< T > &b, SGMatrix< T > &result, T alpha=1, T beta=1)
 
template<typename T >
void add_col_vec (const SGMatrix< T > &A, index_t i, const SGVector< T > &b, SGVector< T > &result, T alpha=1, T beta=1)
 
template<typename T >
void add_vector (const SGMatrix< T > &A, const SGVector< T > &b, SGMatrix< T > &result, T alpha=1, T beta=1)
 
template<typename T , template< typename > class Container>
void add_scalar (Container< T > &a, T b)
 
template<typename T >
void center_matrix (SGMatrix< T > &A)
 
template<typename T >
void dger (T alpha, const SGVector< T > x, const SGVector< T > y, SGMatrix< T > &A)
 
template<typename T >
SGMatrix< T > cholesky_factor (const SGMatrix< T > &A, const bool lower=true)
 
template<typename T >
SGVector< T > cholesky_solver (const SGMatrix< T > &L, const SGVector< T > &b, const bool lower=true)
 
template<typename T >
dot (const SGVector< T > &a, const SGVector< T > &b)
 
template<typename T >
void eigen_solver (const SGMatrix< T > &A, SGVector< T > &eigenvalues, SGMatrix< T > &eigenvectors)
 
template<typename T >
void eigen_solver_symmetric (const SGMatrix< T > &A, SGVector< T > &eigenvalues, SGMatrix< T > &eigenvectors, index_t k=0)
 
template<typename T >
void element_prod (Block< SGMatrix< T >> &a, Block< SGMatrix< T >> &b, SGMatrix< T > &result)
 
template<typename T >
SGMatrix< T > element_prod (Block< SGMatrix< T >> &a, Block< SGMatrix< T >> &b)
 
template<typename T >
void element_prod (SGMatrix< T > &a, SGMatrix< T > &b, SGMatrix< T > &result)
 
template<typename T >
SGMatrix< T > element_prod (SGMatrix< T > &a, SGMatrix< T > &b)
 
template<typename T , template< typename > class Container>
Container< T > exponent (const Container< T > &a)
 
template<typename T >
void identity (SGMatrix< T > &identity_matrix)
 
template<typename T >
void matrix_prod (SGMatrix< T > &A, SGVector< T > &b, SGVector< T > &result, bool transpose=false)
 
template<typename T >
SGVector< T > matrix_prod (SGMatrix< T > &A, SGVector< T > &b, bool transpose=false)
 
template<typename T >
void matrix_prod (SGMatrix< T > &A, SGMatrix< T > &B, SGMatrix< T > &result, bool transpose_A=false, bool transpose_B=false)
 
template<typename T >
SGMatrix< T > matrix_prod (SGMatrix< T > &A, SGMatrix< T > &B, bool transpose_A=false, bool transpose_B=false)
 
template<typename T >
void dgemv (T alpha, SGMatrix< T > a, bool transpose, SGVector< T > x, T beta, SGVector< T > &y)
 
template<typename T >
void dgemm (T alpha, SGMatrix< T > a, SGMatrix< T > b, bool transpose_a, bool transpose_b, T beta, SGMatrix< T > &c)
 
template<typename T , template< typename > class Container>
max (const Container< T > &a)
 
template<typename T , template< typename > class Container>
std::enable_if<!std::is_same< T, complex128_t >::value, float64_t >::type mean (const Container< T > &a)
 
template<template< typename > class Container>
complex128_t mean (const Container< complex128_t > &a)
 
template<typename T >
norm (const SGVector< T > &a)
 
template<typename T , template< typename > class Container>
Container< T > qr_solver (const SGMatrix< T > &A, const Container< T > &b)
 
template<typename T , template< typename > class Container>
void range_fill (Container< T > &a, const T start=0)
 
template<typename T >
void scale (SGVector< T > &a, SGVector< T > &result, T alpha=1)
 
template<typename T >
void scale (SGMatrix< T > &A, SGMatrix< T > &result, T alpha=1)
 
template<typename T , template< typename > class Container>
Container< T > scale (Container< T > &a, T alpha=1)
 
template<typename T , template< typename > class Container>
void set_const (Container< T > &a, T value)
 
template<typename T , template< typename > class Container>
sum (const Container< T > &a, bool no_diag=false)
 
template<typename T >
sum (const Block< SGMatrix< T >> &a, bool no_diag=false)
 
template<typename T >
sum_symmetric (const SGMatrix< T > &a, bool no_diag=false)
 
template<typename T >
sum_symmetric (const Block< SGMatrix< T >> &a, bool no_diag=false)
 
template<typename T >
SGVector< T > colwise_sum (const SGMatrix< T > &mat, bool no_diag=false)
 
template<typename T >
SGVector< T > colwise_sum (const Block< SGMatrix< T >> &a, bool no_diag=false)
 
template<typename T >
SGVector< T > rowwise_sum (const SGMatrix< T > &mat, bool no_diag=false)
 
template<typename T >
SGVector< T > rowwise_sum (const Block< SGMatrix< T >> &a, bool no_diag=false)
 
template<typename T >
void svd (const SGMatrix< T > &A, SGVector< T > &s, SGMatrix< T > &U, bool thin_U=true, SVDAlgorithm alg=SVDAlgorithm::BidiagonalDivideConquer)
 
template<typename T >
trace (const SGMatrix< T > &A)
 
template<typename T >
SGMatrix< T > transpose_matrix (const SGMatrix< T > &A)
 
template<typename T , template< typename > class Container>
Container< T > triangular_solver (const SGMatrix< T > &L, const Container< T > &b, const bool lower=true)
 
template<typename T , template< typename > class Container>
void zero (Container< T > &a)
 

SHOGUN Machine Learning Toolbox - Documentation