CppMatrix
|
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 |
CpuMatrix & | operator= (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 |
CpuMatrix & | operator+= (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 |
CpuMatrix & | operator= (CpuMatrix &&other) |
CpuMatrix | Transpose () const |
CpuMatrix | ElementProduct (const CpuMatrix &other) const |
CpuMatrix | Relu () const |
CpuMatrix | Exp () const |
CpuMatrix | Pow (T e) const |
T | 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) |