Snowman  0.1.0
Public Member Functions | Static Public Member Functions | List of all members
snowboy::Matrix Struct Reference
Inheritance diagram for snowboy::Matrix:
Inheritance graph
[legend]
Collaboration diagram for snowboy::Matrix:
Collaboration graph
[legend]

Public Member Functions

 Matrix (const Matrix &other)
 
 Matrix (const MatrixBase &other)
 
 Matrix (Matrix &&other)
 
void Resize (size_t rows, size_t cols, MatrixResizeType resize=MatrixResizeType::kSetZero)
 
void AllocateMatrixMemory (size_t rows, size_t cols)
 
void ReleaseMatrixMemory ()
 
Matrixoperator= (const Matrix &other)
 
Matrixoperator= (const MatrixBase &other)
 
Matrixoperator= (Matrix &&other)
 
void RemoveRow (size_t row)
 
void Read (bool, bool, std::istream *)
 
void Read (bool, std::istream *)
 
void Swap (Matrix *other)
 
void Transpose ()
 
- Public Member Functions inherited from snowboy::MatrixBase
size_t rows () const noexcept
 
size_t cols () const noexcept
 
size_t stride () const noexcept
 
float * data () const noexcept
 
float * data (size_t row) const noexcept
 
float & operator() (size_t row, size_t col) const noexcept
 
bool empty () const noexcept
 
void AddMat (float alpha, const MatrixBase &A, MatrixTransposeType transA)
 
void AddMatMat (float, const MatrixBase &, MatrixTransposeType, const MatrixBase &, MatrixTransposeType, float)
 
void AddVecToRows (float, const VectorBase &)
 
void AddVecVec (float, const VectorBase &, const VectorBase &)
 
void ApplyFloor (float)
 
SubMatrix ColRange (size_t, size_t) const
 
void CopyColFromVec (const VectorBase &, size_t)
 
void CopyCols (const MatrixBase &, const std::vector< ssize_t > &)
 
void CopyColsFromVec (const VectorBase &)
 
void CopyDiagFromVec (const VectorBase &)
 
void CopyFromMat (const MatrixBase &, MatrixTransposeType transposeType)
 
void CopyRowFromVec (const VectorBase &, size_t)
 
void CopyRows (const MatrixBase &, const std::vector< ssize_t > &)
 
void CopyRowsFromVec (const VectorBase &)
 
bool IsDiagonal (float) const
 
bool IsSymmetric (float) const
 
bool IsUnit (float) const
 
bool IsZero (float cutoff=0.00001) const
 
void MulColsVec (const VectorBase &)
 
void MulRowsVec (const VectorBase &)
 
SubMatrix Range (size_t, size_t, size_t, size_t) const
 
void Read (bool, bool, std::istream *)
 
void Read (bool, std::istream *)
 
SubMatrix RowRange (size_t, size_t) const
 
void Scale (float factor)
 
void Set (float value)
 
void SetRandomGaussian ()
 
void SetRandomUniform ()
 
void SetUnit ()
 
void Transpose ()
 
void Write (bool, std::ostream *) const
 
bool HasNan () const
 
bool HasInfinity () const
 

Static Public Member Functions

static void PrintAllocStats (std::ostream &)
 
static void ResetAllocStats ()
 

Additional Inherited Members

- Public Attributes inherited from snowboy::MatrixBase
size_t m_rows {0}
 
size_t m_cols {0}
 
size_t m_stride {0}
 
float * m_data {nullptr}
 

The documentation for this struct was generated from the following files: