SNAP Library 6.0, Developer Reference
2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <linalg.h>
Public Member Functions | |
TSparseRowMatrix () | |
TSparseRowMatrix (TVec< TIntFltKdV > _RowSpVV) | |
TSparseRowMatrix (TVec< TIntFltKdV > _RowSpVV, const int &_RowN, const int &_ColN) | |
TSparseRowMatrix (const TStr &MatlabMatrixFNm) | |
void | Save (TSOut &SOut) |
void | Load (TSIn &SIn) |
Public Member Functions inherited from TMatrix | |
TMatrix () | |
virtual | ~TMatrix () |
void | Multiply (const TFltVV &B, int ColId, TFltV &Result) const |
void | Multiply (const TFltV &Vec, TFltV &Result) const |
void | MultiplyT (const TFltVV &B, int ColId, TFltV &Result) const |
void | MultiplyT (const TFltV &Vec, TFltV &Result) const |
int | GetRows () const |
int | GetCols () const |
void | Transpose () |
Public Attributes | |
int | RowN |
int | ColN |
TVec< TIntFltKdV > | RowSpVV |
Protected Member Functions | |
virtual void | PMultiply (const TFltVV &B, int ColId, TFltV &Result) const |
virtual void | PMultiply (const TFltV &Vec, TFltV &Result) const |
virtual void | PMultiplyT (const TFltVV &B, int ColId, TFltV &Result) const |
virtual void | PMultiplyT (const TFltV &Vec, TFltV &Result) const |
int | PGetRows () const |
int | PGetCols () const |
|
inline |
|
inline |
TSparseRowMatrix::TSparseRowMatrix | ( | const TStr & | MatlabMatrixFNm | ) |
Definition at line 53 of file linalg.cpp.
References TVec< TVal, TSizeTy >::Add(), ColN, TStr::CStr(), IAssert, TVec< TVal, TSizeTy >::Len(), TMath::Mx(), RowN, RowSpVV, and TVec< TVal, TSizeTy >::Sort().
|
inline |
Definition at line 119 of file linalg.h.
References TSIn::Load().
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
protectedvirtual |
Implements TMatrix.
Definition at line 101 of file linalg.cpp.
References Assert, ColN, TVVec< TVal, TSizeTy >::GetRows(), TVec< TVal, TSizeTy >::Len(), RowN, and RowSpVV.
Implements TMatrix.
Definition at line 112 of file linalg.cpp.
References Assert, ColN, TVec< TVal, TSizeTy >::Len(), RowN, and RowSpVV.
|
protectedvirtual |
Implements TMatrix.
Definition at line 79 of file linalg.cpp.
References Assert, ColN, TVVec< TVal, TSizeTy >::GetRows(), TVec< TVal, TSizeTy >::Len(), RowN, and RowSpVV.
Implements TMatrix.
Definition at line 90 of file linalg.cpp.
References Assert, ColN, TVec< TVal, TSizeTy >::Len(), RowN, and RowSpVV.
|
inline |
Definition at line 117 of file linalg.h.
References TSOut::Save(), and TVec< TVal, TSizeTy >::Save().
int TSparseRowMatrix::ColN |
Definition at line 93 of file linalg.h.
Referenced by PGetCols(), PMultiply(), PMultiplyT(), and TSparseRowMatrix().
int TSparseRowMatrix::RowN |
Definition at line 93 of file linalg.h.
Referenced by PGetRows(), PMultiply(), PMultiplyT(), and TSparseRowMatrix().
TVec<TIntFltKdV> TSparseRowMatrix::RowSpVV |
Definition at line 95 of file linalg.h.
Referenced by PMultiply(), PMultiplyT(), and TSparseRowMatrix().