SNAP Library 3.0, Developer Reference
2016-07-20 17:56:49
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 |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
protectedvirtual |
Implements TMatrix.
Definition at line 101 of file linalg.cpp.
References Assert, ColN, TVVec< TVal >::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 >::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 |
int TSparseRowMatrix::ColN |
Definition at line 93 of file linalg.h.
Referenced by Load(), PGetCols(), PMultiply(), PMultiplyT(), Save(), and TSparseRowMatrix().
int TSparseRowMatrix::RowN |
Definition at line 93 of file linalg.h.
Referenced by Load(), PGetRows(), PMultiply(), PMultiplyT(), Save(), and TSparseRowMatrix().
TVec<TIntFltKdV> TSparseRowMatrix::RowSpVV |
Definition at line 95 of file linalg.h.
Referenced by Load(), PMultiply(), PMultiplyT(), Save(), and TSparseRowMatrix().