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 <ds.h>
Public Member Functions | |
TVVec () | |
TVVec (const TVVec &Vec) | |
TVVec (const TSizeTy &_XDim, const TSizeTy &_YDim) | |
TVVec (const TVec< TVal, TSizeTy > &_ValV, const TSizeTy &_XDim, const TSizeTy &_YDim) | |
TVVec (TSIn &SIn) | |
void | Load (TSIn &SIn) |
void | Save (TSOut &SOut) const |
TVVec< TVal, TSizeTy > & | operator= (const TVVec< TVal, TSizeTy > &Vec) |
bool | operator== (const TVVec &Vec) const |
bool | Empty () const |
void | Clr () |
void | Gen (const TSizeTy &_XDim, const TSizeTy &_YDim) |
TSizeTy | GetXDim () const |
TSizeTy | GetYDim () const |
TSizeTy | GetRows () const |
TSizeTy | GetCols () const |
TVec< TVal, TSizeTy > & | Get1DVec () |
const TVal & | At (const TSizeTy &X, const TSizeTy &Y) const |
TVal & | At (const TSizeTy &X, const TSizeTy &Y) |
TVal & | operator() (const TSizeTy &X, const TSizeTy &Y) |
const TVal & | operator() (const TSizeTy &X, const TSizeTy &Y) const |
void | PutXY (const TSizeTy &X, const TSizeTy &Y, const TVal &Val) |
void | PutAll (const TVal &Val) |
void | PutX (const TSizeTy &X, const TVal &Val) |
void | PutY (const TSizeTy &Y, const TVal &Val) |
TVal | GetXY (const TSizeTy &X, const TSizeTy &Y) const |
void | GetRow (const TSizeTy &RowN, TVec< TVal, TSizeTy > &Vec) const |
void | GetCol (const TSizeTy &ColN, TVec< TVal, TSizeTy > &Vec) const |
void | SwapX (const TSizeTy &X1, const TSizeTy &X2) |
void | SwapY (const TSizeTy &Y1, const TSizeTy &Y2) |
void | Swap (TVVec< TVal, TSizeTy > &Vec) |
void | ShuffleX (TRnd &Rnd) |
void | ShuffleY (TRnd &Rnd) |
void | GetMxValXY (TSizeTy &X, TSizeTy &Y) const |
void | CopyFrom (const TVVec< TVal, TSizeTy > &VVec) |
void | AddXDim () |
void | AddYDim () |
void | DelX (const TSizeTy &X) |
void | DelY (const TSizeTy &Y) |
Private Attributes | |
TInt64 | XDim |
TInt64 | YDim |
TVec< TVal, TSizeTy > | ValV |
|
inline |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
void TVVec< TVal, TSizeTy >::AddXDim | ( | ) |
Definition at line 2344 of file ds.h.
References TVVec< TVal, TSizeTy >::CopyFrom().
void TVVec< TVal, TSizeTy >::AddYDim | ( | ) |
Definition at line 2351 of file ds.h.
References TVVec< TVal, TSizeTy >::CopyFrom().
|
inline |
Definition at line 2256 of file ds.h.
Referenced by TMAGNodeSimple::AttrGen(), TMAGNodeBern::AttrGen(), TMAGNodeBeta::AttrGen(), CalcNonNegativeFactorization(), TMAGFitBern::ComputeJointAdjLL(), TMAGFitBern::ComputeJointLL(), TMAGFitBern::ComputeJointOneLL(), TVVec< TVal, TSizeTy >::CopyFrom(), TMom::DefVV(), TVVec< TVal, TSizeTy >::DelX(), TVVec< TVal, TSizeTy >::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 2246 of file ds.h.
Referenced by TMAGFitBern::Clr(), TMAGFitBern::ComputeJointLL(), TMAGFitBern::DoEStep(), TLAMisc::LoadMatlabTFltVV(), and TMAGFitBern::UpdateAffMtxV().
void TVVec< TVal, TSizeTy >::CopyFrom | ( | const TVVec< TVal, TSizeTy > & | VVec | ) |
Definition at line 2333 of file ds.h.
References TVVec< TVal, TSizeTy >::At(), TVVec< TVal, TSizeTy >::GetXDim(), and TVVec< TVal, TSizeTy >::GetYDim().
Referenced by TVVec< TVal, TSizeTy >::AddXDim(), and TVVec< TVal, TSizeTy >::AddYDim().
void TVVec< TVal, TSizeTy >::DelX | ( | const TSizeTy & | X | ) |
Definition at line 2358 of file ds.h.
References TVVec< TVal, TSizeTy >::At().
Referenced by TSvd::Svd(), and TSvd::Svd1Based().
void TVVec< TVal, TSizeTy >::DelY | ( | const TSizeTy & | Y | ) |
Definition at line 2370 of file ds.h.
References TVVec< TVal, TSizeTy >::At().
Referenced by TSvd::Svd(), and TSvd::Svd1Based().
|
inline |
Definition at line 2245 of file ds.h.
Referenced by TStr::GetDChStr().
|
inline |
Definition at line 2247 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().
|
inline |
void TVVec< TVal, TSizeTy >::GetCol | ( | const TSizeTy & | ColN, |
TVec< TVal, TSizeTy > & | Vec | ||
) | const |
Definition at line 2390 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 2253 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, TSizeTy >::GetMxValXY | ( | TSizeTy & | X, |
TSizeTy & | Y | ||
) | const |
void TVVec< TVal, TSizeTy >::GetRow | ( | const TSizeTy & | RowN, |
TVec< TVal, TSizeTy > & | Vec | ||
) | const |
Definition at line 2382 of file ds.h.
References TVec< TVal, TSizeTy >::Add(), and TVec< TVal, TSizeTy >::Gen().
Referenced by TMAGFitBern::UpdateApxPhiMI().
|
inline |
Definition at line 2252 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 2250 of file ds.h.
Referenced by CalcDescriptionLength(), CalcNonNegativeFactorization(), TMAGFitBern::ComputeMI(), TVVec< TVal, TSizeTy >::CopyFrom(), TMAGFitBern::CountAttr(), TMom::DefVV(), FindRoles(), FPrintMatrix(), TLogRegFit::GetNewtonStep(), InitNegEmb(), InitPosEmb(), TMom::IsUsableVV(), LearnEmbeddings(), LearnVocab(), PrintMatrix(), TMAGFitBern::SetPhiVV(), TSvd::Svd(), TSvd::Svd1Based(), and TrainModel().
|
inline |
|
inline |
Definition at line 2251 of file ds.h.
Referenced by CalcDescriptionLength(), CalcNonNegativeFactorization(), TMAGFitBern::ComputeMI(), TVVec< TVal, TSizeTy >::CopyFrom(), TMAGFitBern::CountAttr(), TMom::DefVV(), FindRoles(), FPrintMatrix(), TMAGParam< TNodeAttr >::GenAttrMAG(), TMAGParam< TNodeAttr >::GenMAG(), TMAGFitBern::GradPhiMI(), InitNegEmb(), InitPosEmb(), TMom::IsUsableVV(), LearnEmbeddings(), LearnVocab(), TMAGFitBern::ObjPhiMI(), PrintMatrix(), TMAGFitBern::SetPhiVV(), TSvd::Svd(), TSvd::Svd1Based(), and TrainModel().
Definition at line 2236 of file ds.h.
Referenced by TVVec< TFlt >::TVVec().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 2268 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 2271 of file ds.h.
Referenced by TMAGFitBern::SetPhiVV().
|
inline |
Definition at line 2316 of file ds.h.
References TRnd::GetUniDevInt().
Definition at line 2321 of file ds.h.
References TRnd::GetUniDevInt().
void TVVec< TVal, TSizeTy >::Swap | ( | TVVec< TVal, TSizeTy > & | Vec | ) |
Definition at line 2307 of file ds.h.
References Swap(), TVVec< TVal, TSizeTy >::ValV, TVVec< TVal, TSizeTy >::XDim, and TVVec< TVal, TSizeTy >::YDim.
void TVVec< TVal, TSizeTy >::SwapX | ( | const TSizeTy & | X1, |
const TSizeTy & | X2 | ||
) |
void TVVec< TVal, TSizeTy >::SwapY | ( | const TSizeTy & | Y1, |
const TSizeTy & | Y2 | ||
) |
Definition at line 2226 of file ds.h.
Referenced by TVVec< TFlt >::Get1DVec(), TVVec< TFlt >::operator=(), TVVec< TFlt >::operator==(), and TVVec< TVal, TSizeTy >::Swap().
Definition at line 2225 of file ds.h.
Referenced by TVVec< TFlt >::GetRows(), TVVec< TFlt >::GetXDim(), TVVec< TFlt >::operator=(), TVVec< TFlt >::operator==(), and TVVec< TVal, TSizeTy >::Swap().
Definition at line 2225 of file ds.h.
Referenced by TVVec< TFlt >::GetCols(), TVVec< TFlt >::GetYDim(), TVVec< TFlt >::operator=(), TVVec< TFlt >::operator==(), TVVec< TVal, TSizeTy >::Swap(), and TVVec< TFlt >::TVVec().