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 <ds.h>
Public Member Functions | |
TVVec () | |
TVVec (const TVVec &Vec) | |
TVVec (const int &_XDim, const int &_YDim) | |
TVVec (const TVec< TVal > &_ValV, const int &_XDim, const int &_YDim) | |
TVVec (TSIn &SIn) | |
void | Load (TSIn &SIn) |
void | Save (TSOut &SOut) const |
TVVec< TVal > & | operator= (const TVVec< TVal > &Vec) |
bool | operator== (const TVVec &Vec) const |
bool | Empty () const |
void | Clr () |
void | Gen (const int &_XDim, const int &_YDim) |
int | GetXDim () const |
int | GetYDim () const |
int | GetRows () const |
int | GetCols () const |
TVec< TVal > & | Get1DVec () |
const TVal & | At (const int &X, const int &Y) const |
TVal & | At (const int &X, const int &Y) |
TVal & | operator() (const int &X, const int &Y) |
const TVal & | operator() (const int &X, const int &Y) const |
void | PutXY (const int &X, const int &Y, const TVal &Val) |
void | PutAll (const TVal &Val) |
void | PutX (const int &X, const TVal &Val) |
void | PutY (const int &Y, const TVal &Val) |
TVal | GetXY (const int &X, const int &Y) const |
void | GetRow (const int &RowN, TVec< TVal > &Vec) const |
void | GetCol (const int &ColN, TVec< TVal > &Vec) const |
void | SwapX (const int &X1, const int &X2) |
void | SwapY (const int &Y1, const int &Y2) |
void | Swap (TVVec< TVal > &Vec) |
void | ShuffleX (TRnd &Rnd) |
void | ShuffleY (TRnd &Rnd) |
void | GetMxValXY (int &X, int &Y) const |
void | CopyFrom (const TVVec< TVal > &VVec) |
void | AddXDim () |
void | AddYDim () |
void | DelX (const int &X) |
void | DelY (const int &Y) |
Private Attributes | |
TInt | XDim |
TInt | YDim |
TVec< TVal > | ValV |
|
inlineexplicit |
void TVVec< TVal >::AddXDim | ( | ) |
Definition at line 2278 of file ds.h.
References TVVec< TVal >::CopyFrom().
void TVVec< TVal >::AddYDim | ( | ) |
Definition at line 2285 of file ds.h.
References TVVec< TVal >::CopyFrom().
|
inline |
Definition at line 2190 of file ds.h.
Referenced by TMAGNodeSimple::AttrGen(), TMAGNodeBern::AttrGen(), TMAGNodeBeta::AttrGen(), CalcNonNegativeFactorization(), TMAGFitBern::ComputeJointAdjLL(), TMAGFitBern::ComputeJointLL(), TMAGFitBern::ComputeJointOneLL(), TVVec< TVal >::CopyFrom(), TMom::DefVV(), TVVec< TVal >::DelX(), TVVec< TVal >::DelY(), TMAGFitBern::DoEMAlg(), TMAGFitBern::DoEStepApxOneIter(), TMAGFitBern::DoEStepOneIter(), TLinAlg::Gemm(), TMAGParam< TNodeAttr >::GenAttrMAG(), TMAGParam< TNodeAttr >::GenMAG(), TStr::GetDChStr(), TMAGFitBern::GetInCoeff(), TMAGFitBern::GetOutCoeff(), TMAGFitBern::GetProbMu(), TMAGFitBern::GetProbPhi(), TSnap::GetSngVals(), TSnap::GetSngVec(), TLinReg::GetXV(), TSvd::GetXV(), TLogRegFit::Hessian(), TLinAlg::InverseSVD(), TMom::IsUsableVV(), TMom::NewVV(), TLinReg::NR_covsrt(), TLinReg::NR_gaussj(), TLinReg::NR_lfit(), TSvd::NR_svbksb(), TSvd::NR_svdcmp(), TSvd::NR_svdfit(), TSvd::NR_svdvar(), TVVec< TFlt >::operator()(), TLAMisc::PrintTFltVV(), TVVec< TFlt >::PutX(), TVVec< TFlt >::PutXY(), TVVec< TFlt >::PutY(), TMAGFitBern::RandomInit(), TSvd::Svd(), TGraphKey::TakeSig(), TLinAlg::Transpose(), TMAGFitBern::UpdateApxPhiMI(), TMAGFitBern::UpdateMu(), TMAGFitBern::UpdatePhi(), and TMAGFitBern::UpdatePhiMI().
|
inline |
|
inline |
Definition at line 2180 of file ds.h.
Referenced by TMAGFitBern::Clr(), TMAGFitBern::ComputeJointLL(), TMAGFitBern::DoEStep(), TLAMisc::LoadMatlabTFltVV(), and TMAGFitBern::UpdateAffMtxV().
Definition at line 2267 of file ds.h.
References TVVec< TVal >::At(), TInt::GetMn(), TVVec< TVal >::GetXDim(), and TVVec< TVal >::GetYDim().
Referenced by TVVec< TVal >::AddXDim(), and TVVec< TVal >::AddYDim().
void TVVec< TVal >::DelX | ( | const int & | X | ) |
Definition at line 2292 of file ds.h.
References TVVec< TVal >::At().
Referenced by TSvd::Svd(), and TSvd::Svd1Based().
void TVVec< TVal >::DelY | ( | const int & | Y | ) |
Definition at line 2304 of file ds.h.
References TVVec< TVal >::At().
Referenced by TSvd::Svd(), and TSvd::Svd1Based().
|
inline |
Definition at line 2179 of file ds.h.
Referenced by TStr::GetDChStr().
|
inline |
Definition at line 2181 of file ds.h.
Referenced by TMAGNodeSimple::AttrGen(), TMAGNodeBern::AttrGen(), TMAGNodeBeta::AttrGen(), TMAGFitBern::DoEStepApxOneIter(), TStr::GetDChStr(), TLogRegFit::Hessian(), TMAGFitBern::Init(), TLinAlg::InverseSVD(), TSparseSVD::Lanczos(), TSparseSVD::Lanczos2(), TSparseSVD::LanczosSVD(), TLAMisc::LoadMatlabTFltVV(), TMom::NewVV(), TSvd::NR_svdfit(), TMAGFitBern::PrepareUpdateAffMtx(), TMAGFitBern::PrepareUpdateApxAffMtx(), TMAGFitBern::RandomInit(), TMAGFitBern::SetPhiVV(), TSvd::Svd(), TSvd::Svd1Based(), TMAGFitBern::TMAGFitBern(), and TVVec< TFlt >::TVVec().
Definition at line 2324 of file ds.h.
References TVec< TVal, TSizeTy >::Add(), and TVec< TVal, TSizeTy >::Gen().
Referenced by TSnap::GetEigVec(), TSnap::GetInvParticipRat(), and TSnap::GetSngVec().
|
inline |
Definition at line 2187 of file ds.h.
Referenced by TLinAlg::AssertOrtogonality(), TNumericalStuff::CholeskyDecomposition(), TNumericalStuff::CholeskySolve(), TLAMisc::FillIdentity(), TNIBs::find_min_state(), TLinAlg::Gemm(), TSnap::GetInvParticipRat(), TLinAlg::GS(), TNumericalStuff::InverseSubstitute(), TLinAlg::InverseSVD(), TNumericalStuff::InverseSymetric(), TNumericalStuff::InverseTriagonal(), TNumericalStuff::LUDecomposition(), TNumericalStuff::LUSolve(), TLinAlg::Multiply(), TLinAlg::MultiplyT(), TLAMisc::PrintTFltVV(), TSparseSVD::Project(), TLAMisc::SaveMatlabTFltVV(), TNumericalStuff::SolveSymetricSystem(), and TLinAlg::Transpose().
void TVVec< TVal >::GetMxValXY | ( | int & | X, |
int & | Y | ||
) | const |
Definition at line 2316 of file ds.h.
References TVec< TVal, TSizeTy >::Add(), and TVec< TVal, TSizeTy >::Gen().
Referenced by TMAGFitBern::UpdateApxPhiMI().
|
inline |
Definition at line 2186 of file ds.h.
Referenced by TLinAlg::AddVec(), TNumericalStuff::CholeskyDecomposition(), TNumericalStuff::CholeskySolve(), TLinAlg::DotProduct(), TLAMisc::FillIdentity(), TNIBs::find_min_state(), TLinAlg::Gemm(), TLinAlg::GS(), TNumericalStuff::InverseSubstitute(), TLinAlg::InverseSVD(), TNumericalStuff::InverseSymetric(), TNumericalStuff::InverseTriagonal(), TNumericalStuff::LUDecomposition(), TNumericalStuff::LUSolve(), TLinAlg::Multiply(), TLinAlg::MultiplyT(), TNGraphMtx::PMultiply(), TUNGraphMtx::PMultiply(), TSparseColMatrix::PMultiply(), TSparseRowMatrix::PMultiply(), TFullColMatrix::PMultiply(), TNGraphMtx::PMultiplyT(), TUNGraphMtx::PMultiplyT(), TSparseColMatrix::PMultiplyT(), TSparseRowMatrix::PMultiplyT(), TFullColMatrix::PMultiplyT(), TLAMisc::PrintTFltVV(), TLAMisc::SaveMatlabTFltVV(), TLAMisc::SaveMatlabTFltVVCol(), TNumericalStuff::SolveSymetricSystem(), and TLinAlg::Transpose().
|
inline |
Definition at line 2184 of file ds.h.
Referenced by CalcDescriptionLength(), CalcNonNegativeFactorization(), TMAGFitBern::ComputeMI(), TVVec< TVal >::CopyFrom(), TMAGFitBern::CountAttr(), TMom::DefVV(), FindRoles(), FPrintMatrix(), TLogRegFit::GetNewtonStep(), TMom::IsUsableVV(), PrintMatrix(), TMAGFitBern::SetPhiVV(), TSvd::Svd(), and TSvd::Svd1Based().
|
inline |
|
inline |
Definition at line 2185 of file ds.h.
Referenced by CalcDescriptionLength(), CalcNonNegativeFactorization(), TMAGFitBern::ComputeMI(), TVVec< TVal >::CopyFrom(), TMAGFitBern::CountAttr(), TMom::DefVV(), FindRoles(), FPrintMatrix(), TMAGParam< TNodeAttr >::GenAttrMAG(), TMAGParam< TNodeAttr >::GenMAG(), TMAGFitBern::GradPhiMI(), TMom::IsUsableVV(), TMAGFitBern::ObjPhiMI(), PrintMatrix(), TMAGFitBern::SetPhiVV(), TSvd::Svd(), and TSvd::Svd1Based().
Definition at line 2170 of file ds.h.
Referenced by TVVec< TFlt >::TVVec().
|
inline |
|
inline |
|
inline |
Definition at line 2202 of file ds.h.
Referenced by TMAGNodeSimple::AttrGen(), TMAGNodeBern::AttrGen(), TMAGNodeBeta::AttrGen(), TMAGFitBern::ComputeMI(), TMAGFitBern::DoEStepApxOneIter(), TMAGFitBern::Init(), TMAGFitBern::RandomInit(), TMAGFitBern::SetPhiVV(), TMAGFitBern::UpdateApxPhiMI(), and TMAGFitBern::UpdatePhiMI().
|
inline |
|
inline |
|
inline |
Definition at line 2205 of file ds.h.
Referenced by TMAGFitBern::SetPhiVV().
Definition at line 2250 of file ds.h.
References TRnd::GetUniDevInt().
Definition at line 2255 of file ds.h.
References TRnd::GetUniDevInt().
Definition at line 2241 of file ds.h.
References Swap(), TVVec< TVal >::ValV, TVVec< TVal >::XDim, and TVVec< TVal >::YDim.
void TVVec< TVal >::SwapX | ( | const int & | X1, |
const int & | X2 | ||
) |
void TVVec< TVal >::SwapY | ( | const int & | Y1, |
const int & | Y2 | ||
) |
Definition at line 2160 of file ds.h.
Referenced by TVVec< TFlt >::At(), TVVec< TFlt >::Clr(), TVVec< TFlt >::Empty(), TVVec< TFlt >::Gen(), TVVec< TFlt >::Get1DVec(), TVVec< TFlt >::GetXY(), TVVec< TFlt >::Load(), TVVec< TFlt >::operator=(), TVVec< TFlt >::operator==(), TVVec< TFlt >::PutAll(), TVVec< TFlt >::Save(), TVVec< TVal >::Swap(), and TVVec< TFlt >::TVVec().
Definition at line 2159 of file ds.h.
Referenced by TVVec< TFlt >::At(), TVVec< TFlt >::Clr(), TVVec< TFlt >::Gen(), TVVec< TFlt >::GetRows(), TVVec< TFlt >::GetXDim(), TVVec< TFlt >::GetXY(), TVVec< TFlt >::Load(), TVVec< TFlt >::operator=(), TVVec< TFlt >::operator==(), TVVec< TFlt >::PutY(), TVVec< TFlt >::Save(), TVVec< TVal >::Swap(), and TVVec< TFlt >::TVVec().
Definition at line 2159 of file ds.h.
Referenced by TVVec< TFlt >::At(), TVVec< TFlt >::Clr(), TVVec< TFlt >::Gen(), TVVec< TFlt >::GetCols(), TVVec< TFlt >::GetXY(), TVVec< TFlt >::GetYDim(), TVVec< TFlt >::Load(), TVVec< TFlt >::operator=(), TVVec< TFlt >::operator==(), TVVec< TFlt >::PutX(), TVVec< TFlt >::Save(), TVVec< TVal >::Swap(), and TVVec< TFlt >::TVVec().