CppMatrix
Loading...
Searching...
No Matches
cpp_matrix::backend::CpuMatrix< T > Class Template Referenceexport
module cpp_matrix

Public Types

using ElementType = T
 

Public Member Functions

 CpuMatrix (size_t row, size_t column)
 
 CpuMatrix (const CpuMatrix &other)
 
 CpuMatrix (CpuMatrix &&other)
 
size_t Row () const
 
size_t Column () const
 
CpuMatrixoperator= (std::vector< T > data)
 
void Write (std::span< T > data)
 
void Write (std::vector< T > data)
 
void Write (size_t row, size_t column, const CpuMatrix &m)
 
std::vector< T > Read () const
 
CpuMatrix operator+ (const CpuMatrix &other) const
 
CpuMatrixoperator+= (const CpuMatrix &other)
 
CpuMatrix operator+ (ElementType v) const
 
CpuMatrix operator- (const CpuMatrix &other) const
 
CpuMatrix operator* (ElementType v) const
 
CpuMatrix operator* (const CpuMatrix &other) const
 
CpuMatrix operator/ (ElementType v) const
 
CpuMatrixoperator= (CpuMatrix &&other)
 
CpuMatrix Transpose () const
 
CpuMatrix ElementProduct (const CpuMatrix &other) const
 
CpuMatrix Relu () const
 
CpuMatrix Exp () const
 
CpuMatrix Pow (T e) const
 
operator[] (size_t row, size_t column) const
 
size_t BufferSize () const
 
CpuMatrix Sum (bool byRow, bool byColumn) const
 
CpuMatrix AddToRow (const CpuMatrix &m) const
 

Static Public Member Functions

static bool IsAvaliable ()
 

Friends

template<MatrixElementType R>
CpuMatrix< R > operator- (R v, const CpuMatrix< R > &m)
 
template<MatrixElementType R>
CpuMatrix< R > operator/ (R v, const CpuMatrix< R > &m)
 

The documentation for this class was generated from the following file: