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

Public Member Functions

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
 

Public Attributes

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: