CppMatrix
|
Public Types | |
using | ElementType = T |
Public Member Functions | |
CudaMatrix (size_t row, size_t column) | |
CudaMatrix (const CudaMatrix &other) | |
CudaMatrix (CudaMatrix &&other) | |
size_t | Row () const |
size_t | Column () const |
CudaMatrix & | operator= (const CudaMatrix &other) |
CudaMatrix & | operator= (CudaMatrix &&other) |
CudaMatrix & | operator= (std::vector< ElementType > data) |
void | Write (std::span< ElementType > data) |
void | Write (size_t row, size_t column, const CudaMatrix &m) |
std::vector< ElementType > | Read () const |
CudaMatrix | operator+ (const CudaMatrix &other) const |
CudaMatrix & | operator+= (const CudaMatrix &other) |
CudaMatrix | operator+ (ElementType v) const |
CudaMatrix | operator- (const CudaMatrix &other) const |
CudaMatrix | operator* (ElementType v) const |
CudaMatrix | operator* (const CudaMatrix &other) const |
CudaMatrix | operator/ (ElementType v) const |
CudaMatrix | Transpose () const |
CudaMatrix | ElementProduct (const CudaMatrix &other) const |
CudaMatrix | Relu () const |
CudaMatrix | Exp () const |
CudaMatrix | Pow (T e) const |
T | operator[] (size_t row, size_t column) const |
CudaMatrix | Sum (bool byRow, bool byColumn) const |
CudaMatrix | AddToRow (const CudaMatrix &m) const |
CudaMatrix< std::float32_t > | Pow (std::float32_t e) const |
CudaMatrix< std::float16_t > | Pow (std::float16_t e) const |
Static Public Member Functions | |
static bool | IsAvaliable () |
Friends | |
template<MatrixElementType R> | |
CudaMatrix< R > | operator- (R v, const CudaMatrix< R > &m) |
template<MatrixElementType R> | |
CudaMatrix< R > | operator/ (R v, const CudaMatrix< R > &m) |