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

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
 
CudaMatrixoperator= (const CudaMatrix &other)
 
CudaMatrixoperator= (CudaMatrix &&other)
 
CudaMatrixoperator= (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
 
CudaMatrixoperator+= (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
 
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)
 

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