SNAP Library 4.1, Developer Reference
2018-07-26 16:30:42
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <kronecker.h>
Public Member Functions | |
TKronMtx () | |
TKronMtx (const int &Dim) | |
TKronMtx (const TFltV &SeedMatrix) | |
TKronMtx (const TKronMtx &Kronecker) | |
void | SaveTxt (const TStr &OutFNm) const |
TKronMtx & | operator= (const TKronMtx &Kronecker) |
bool | operator== (const TKronMtx &Kronecker) const |
int | GetPrimHashCd () const |
int | GetSecHashCd () const |
int | GetDim () const |
int | Len () const |
bool | Empty () const |
bool | IsProbMtx () const |
TFltV & | GetMtx () |
const TFltV & | GetMtx () const |
void | SetMtx (const TFltV &ParamV) |
void | SetRndMtx (const int &MtxDim, const double &MinProb=0.0) |
void | PutAllMtx (const double &Val) |
void | GenMtx (const int &Dim) |
void | SetEpsMtx (const double &Eps1, const double &Eps0, const int &Eps1Val=1, const int &Eps0Val=0) |
void | SetForEdges (const int &Nodes, const int &Edges) |
void | AddRndNoise (const double &SDev) |
TStr | GetMtxStr () const |
const double & | At (const int &Row, const int &Col) const |
double & | At (const int &Row, const int &Col) |
const double & | At (const int &ValN) const |
double & | At (const int &ValN) |
int | GetNodes (const int &NIter) const |
int | GetEdges (const int &NIter) const |
int | GetKronIter (const int &Nodes) const |
int | GetNZeroK (const PNGraph &Graph) const |
double | GetEZero (const int &Edges, const int &KronIter) const |
double | GetMtxSum () const |
double | GetRowSum (const int &RowId) const |
double | GetColSum (const int &ColId) const |
void | ToOneMinusMtx () |
void | GetLLMtx (TKronMtx &LLMtx) |
void | GetProbMtx (TKronMtx &ProbMtx) |
void | Swap (TKronMtx &KronMtx) |
double | GetEdgeProb (int NId1, int NId2, const int &NKronIters) const |
double | GetNoEdgeProb (int NId1, int NId2, const int &NKronIters) const |
double | GetEdgeLL (int NId1, int NId2, const int &NKronIters) const |
double | GetNoEdgeLL (int NId1, int NId2, const int &NKronIters) const |
double | GetApxNoEdgeLL (int NId1, int NId2, const int &NKronIters) const |
bool | IsEdgePlace (int NId1, int NId2, const int &NKronIters, const double &ProbTresh) const |
double | GetEdgeDLL (const int &ParamId, int NId1, int NId2, const int &NKronIters) const |
double | GetNoEdgeDLL (const int &ParamId, int NId1, int NId2, const int &NKronIters) const |
double | GetApxNoEdgeDLL (const int &ParamId, int NId1, int NId2, const int &NKronIters) const |
double | GetEdgeProb (const uint &NId1Sig, const uint &NId2Sig, const int &NIter) const |
PNGraph | GenThreshGraph (const double &Thresh) const |
PNGraph | GenRndGraph (const double &RndFact=1.0) const |
void | Dump (const TStr &MtxNm=TStr(), const bool &Sort=false) const |
Static Public Member Functions | |
static uint | GetNodeSig (const double &OneProb=0.5) |
static int | GetKronIter (const int &GNodes, const int &SeedMtxSz) |
static PNGraph | GenKronecker (const TKronMtx &SeedMtx, const int &NIter, const bool &IsDir, const int &Seed=0) |
static PNGraph | GenFastKronecker (const TKronMtx &SeedMtx, const int &NIter, const bool &IsDir, const int &Seed=0) |
static PNGraph | GenFastKronecker (const TKronMtx &SeedMtx, const int &NIter, const int &Edges, const bool &IsDir, const int &Seed=0) |
static PNGraph | GenDetKronecker (const TKronMtx &SeedMtx, const int &NIter, const bool &IsDir) |
static void | PlotCmpGraphs (const TKronMtx &SeedMtx, const PNGraph &Graph, const TStr &OutFNm, const TStr &Desc) |
static void | PlotCmpGraphs (const TKronMtx &SeedMtx1, const TKronMtx &SeedMtx2, const PNGraph &Graph, const TStr &OutFNm, const TStr &Desc) |
static void | PlotCmpGraphs (const TVec< TKronMtx > &SeedMtxV, const PNGraph &Graph, const TStr &FNmPref, const TStr &Desc) |
static void | KronMul (const TKronMtx &LeftPt, const TKronMtx &RightPt, TKronMtx &OutMtx) |
static void | KronSum (const TKronMtx &LeftPt, const TKronMtx &RightPt, TKronMtx &OutMtx) |
static void | KronPwr (const TKronMtx &KronPt, const int &NIter, TKronMtx &OutMtx) |
static double | GetAvgAbsErr (const TKronMtx &Kron1, const TKronMtx &Kron2) |
static double | GetAvgFroErr (const TKronMtx &Kron1, const TKronMtx &Kron2) |
static TKronMtx | GetMtx (TStr MatlabMtxStr) |
static TKronMtx | GetRndMtx (const int &Dim, const double &MinProb) |
static TKronMtx | GetInitMtx (const int &Dim, const int &Nodes, const int &Edges) |
static TKronMtx | GetInitMtx (const TStr &MtxStr, const int &Dim, const int &Nodes, const int &Edges) |
static TKronMtx | GetMtxFromNm (const TStr &MtxNm) |
static TKronMtx | LoadTxt (const TStr &MtxFNm) |
static void | PutRndSeed (const int &Seed) |
Static Public Attributes | |
static const double | NInf = -DBL_MAX |
static TRnd | Rnd = TRnd(0) |
Private Attributes | |
TInt | MtxDim |
TFltV | SeedMtx |
Definition at line 11 of file kronecker.h.
|
inline |
Definition at line 19 of file kronecker.h.
Referenced by GetMtxFromNm().
|
inline |
Definition at line 20 of file kronecker.h.
TKronMtx::TKronMtx | ( | const TFltV & | SeedMatrix | ) |
Definition at line 9 of file kronecker.cpp.
References IAssert, TVec< TVal, TSizeTy >::Len(), MtxDim, and SeedMtx.
|
inline |
Definition at line 22 of file kronecker.h.
void TKronMtx::AddRndNoise | ( | const double & | SDev | ) |
Definition at line 69 of file kronecker.cpp.
References At(), Dump(), TRnd::GetNrmDev(), Len(), and Rnd.
Referenced by GetInitMtx().
|
inline |
Definition at line 46 of file kronecker.h.
References MtxDim, and SeedMtx.
Referenced by AddRndNoise(), GenFastKronecker(), GenRndGraph(), GenThreshGraph(), TKroneckerLL::GetApxEmptyGraphDLL(), TKroneckerLL::GetApxEmptyGraphLL(), GetApxNoEdgeDLL(), GetColSum(), GetEdgeDLL(), GetEdgeLL(), GetEdgeProb(), GetInitMtx(), GetLLMtx(), GetMtx(), GetMtxStr(), GetMtxSum(), GetNoEdgeDLL(), GetProbMtx(), GetRowSum(), TKroneckerLL::GradDescent(), TKroneckerLL::GradDescent2(), TKroneckerLL::GradDescentConvergence(), IsEdgePlace(), IsProbMtx(), KronMul(), KronSum(), LoadTxt(), TKronMaxLL::RoundTheta(), TKroneckerLL::RunMStep(), SaveTxt(), TKroneckerLL::SetBestDegPerm(), SetEpsMtx(), SetForEdges(), TKroneckerLL::SetRandomEdges(), TKroneckerLL::TestKronDescent(), and ToOneMinusMtx().
|
inline |
|
inline |
|
inline |
Definition at line 636 of file kronecker.cpp.
References TStr::CStr(), TStr::Empty(), GetDim(), TVec< TVal, TSizeTy >::Len(), SeedMtx, and TVec< TVal, TSizeTy >::Sort().
Referenced by AddRndNoise(), TKroneckerLL::GradDescent(), TKroneckerLL::GradDescent2(), TKroneckerLL::GradDescentConvergence(), TKroneckerLL::RunMStep(), TKroneckerLL::TestBicCriterion(), TKroneckerLL::TestKronDescent(), and TKroneckerLL::TestSamplePerm().
|
inline |
Definition at line 32 of file kronecker.h.
References TVec< TVal, TSizeTy >::Empty(), and SeedMtx.
Referenced by TKroneckerLL::GradDescentConvergence(), and TKroneckerLL::TestSamplePerm().
|
static |
Definition at line 458 of file kronecker.cpp.
References TNGraph::AddEdge(), TNGraph::AddNode(), GetNodes(), TRnd::GetUniDev(), IsEdgePlace(), TNGraph::New(), Rnd, and SeedMtx.
|
static |
Definition at line 349 of file kronecker.cpp.
References TVec< TVal, TSizeTy >::Add(), TNGraph::AddEdge(), TNGraph::AddNode(), At(), GetDim(), GetEdges(), TNGraph::GetEdges(), GetMtxSum(), GetNodes(), TRnd::GetUniDev(), TNGraph::IsEdge(), MtxDim, TNGraph::New(), Rnd, and SeedMtx.
Referenced by TKroneckerLL::GradDescentConvergence(), PlotCmpGraphs(), TKronMaxLL::Test(), and TKroneckerLL::TestGradDescent().
|
static |
Definition at line 404 of file kronecker.cpp.
References TVec< TVal, TSizeTy >::Add(), TNGraph::AddEdge(), TNGraph::AddNode(), At(), GetDim(), TNGraph::GetEdges(), GetMtxSum(), GetNodes(), TRnd::GetUniDev(), TNGraph::IsEdge(), MtxDim, TNGraph::New(), Rnd, and SeedMtx.
|
static |
Definition at line 312 of file kronecker.cpp.
References TNGraph::AddEdge(), TNGraph::AddNode(), TNGraph::GetEdges(), GetNodes(), TExeTm::GetTmStr(), TRnd::GetUniDev(), IsEdgePlace(), TNGraph::New(), Rnd, and SeedMtx.
Referenced by PlotCmpGraphs().
|
inline |
Definition at line 40 of file kronecker.h.
References TVec< TVal, TSizeTy >::Gen(), MtxDim, and SeedMtx.
Referenced by GetLLMtx(), GetProbMtx(), KronMul(), KronSum(), and TKronMaxLL::RoundTheta().
PNGraph TKronMtx::GenRndGraph | ( | const double & | RndFact = 1.0 | ) | const |
Definition at line 295 of file kronecker.cpp.
References TNGraph::AddEdge(), TNGraph::AddNode(), At(), GetDim(), TRnd::GetUniDev(), and TNGraph::New().
PNGraph TKronMtx::GenThreshGraph | ( | const double & | Thresh | ) | const |
Definition at line 283 of file kronecker.cpp.
References TNGraph::AddEdge(), TNGraph::AddNode(), At(), GetDim(), and TNGraph::New().
double TKronMtx::GetApxNoEdgeDLL | ( | const int & | ParamId, |
int | NId1, | ||
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 240 of file kronecker.cpp.
References At(), GetDim(), IAssert, MtxDim, and NInf.
Referenced by TKroneckerLL::CalcApxGraphDLL(), TKroneckerLL::CalcFullApxGraphDLL(), TKroneckerLL::MetroGibbsSampleNext(), TKroneckerLL::NodeDLLDelta(), and TKroneckerLL::UpdateGraphDLL().
double TKronMtx::GetApxNoEdgeLL | ( | int | NId1, |
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 191 of file kronecker.cpp.
References GetEdgeLL().
Referenced by TKroneckerLL::CalcApxGraphLL(), TKroneckerLL::MetroGibbsSampleNext(), TKroneckerLL::NodeLLDelta(), and TKroneckerLL::SwapNodesLL().
Definition at line 655 of file kronecker.cpp.
References GetMtx(), IAssert, TVec< TVal, TSizeTy >::Len(), and TVec< TVal, TSizeTy >::Sort().
Referenced by TKroneckerLL::GradDescentConvergence(), and TKroneckerLL::TestKronDescent().
Definition at line 668 of file kronecker.cpp.
References GetMtx(), IAssert, TVec< TVal, TSizeTy >::Len(), and TVec< TVal, TSizeTy >::Sort().
double TKronMtx::GetColSum | ( | const int & | ColId | ) | const |
Definition at line 154 of file kronecker.cpp.
References At(), and GetDim().
Referenced by TKroneckerLL::GetFullColLL().
|
inline |
Definition at line 30 of file kronecker.h.
References MtxDim.
Referenced by TKroneckerLL::AppendIsoNodes(), Dump(), GenFastKronecker(), GenRndGraph(), GenThreshGraph(), GetApxNoEdgeDLL(), GetColSum(), TKroneckerLL::GetDim(), GetEdgeDLL(), GetEdgeProb(), TKroneckerLL::GetFullColLL(), TKroneckerLL::GetFullGraphLL(), TKroneckerLL::GetFullRowLL(), GetKronIter(), GetMtxStr(), GetNodes(), GetNoEdgeDLL(), GetRowSum(), KronMul(), KronSum(), TKroneckerLL::MetroGibbsSampleSetup(), TKroneckerLL::RunMStep(), SaveTxt(), TKroneckerLL::SetBestDegPerm(), TKroneckerLL::SetGraph(), and TKroneckerLL::SetRandomEdges().
double TKronMtx::GetEdgeDLL | ( | const int & | ParamId, |
int | NId1, | ||
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 207 of file kronecker.cpp.
References At(), GetDim(), and MtxDim.
Referenced by TKroneckerLL::CalcApxGraphDLL(), TKroneckerLL::CalcFullApxGraphDLL(), TKroneckerLL::CalcGraphDLL(), TKroneckerLL::MetroGibbsSampleNext(), TKroneckerLL::NodeDLLDelta(), and TKroneckerLL::UpdateGraphDLL().
double TKronMtx::GetEdgeLL | ( | int | NId1, |
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 175 of file kronecker.cpp.
References At(), MtxDim, and NInf.
Referenced by TKroneckerLL::CalcApxGraphLL(), TKroneckerLL::CalcGraphLL(), GetApxNoEdgeLL(), GetNoEdgeLL(), TKroneckerLL::MetroGibbsSampleNext(), TKroneckerLL::NodeLLDelta(), and TKroneckerLL::SwapNodesLL().
double TKronMtx::GetEdgeProb | ( | int | NId1, |
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 161 of file kronecker.cpp.
Referenced by GetNoEdgeProb().
double TKronMtx::GetEdgeProb | ( | const uint & | NId1Sig, |
const uint & | NId2Sig, | ||
const int & | NIter | ||
) | const |
Definition at line 271 of file kronecker.cpp.
References Assert, At(), and GetDim().
int TKronMtx::GetEdges | ( | const int & | NIter | ) | const |
Definition at line 123 of file kronecker.cpp.
References GetMtxSum().
Referenced by GenFastKronecker(), TKroneckerLL::GradDescent(), TKroneckerLL::GradDescent2(), and TKroneckerLL::GradDescentConvergence().
double TKronMtx::GetEZero | ( | const int & | Edges, |
const int & | KronIter | ||
) | const |
Definition at line 136 of file kronecker.cpp.
|
static |
Definition at line 705 of file kronecker.cpp.
References TRnd::GetUniDev(), TVec< TVal, TSizeTy >::Len(), TVec< TVal, TSizeTy >::PutAll(), and SetForEdges().
Referenced by GetInitMtx(), and TKroneckerLL::TestBicCriterion().
|
static |
Definition at line 721 of file kronecker.cpp.
References AddRndNoise(), At(), FailR, GetInitMtx(), GetMtx(), GetRndMtx(), TRnd::GetUniDev(), TCh::IsNum(), and SetForEdges().
int TKronMtx::GetKronIter | ( | const int & | Nodes | ) | const |
Definition at line 127 of file kronecker.cpp.
References GetDim().
Referenced by GetNZeroK(), PlotCmpGraphs(), SetForEdges(), and TKronMomentsFit::Test().
|
static |
Definition at line 307 of file kronecker.cpp.
void TKronMtx::GetLLMtx | ( | TKronMtx & | LLMtx | ) |
Definition at line 98 of file kronecker.cpp.
References At(), GenMtx(), Len(), MtxDim, and NInf.
Referenced by TKroneckerLL::GradDescent(), TKroneckerLL::GradDescent2(), TKroneckerLL::GradDescentConvergence(), TKroneckerLL::InitLL(), TKroneckerLL::RunMStep(), and TKroneckerLL::TestKronDescent().
|
inline |
Definition at line 35 of file kronecker.h.
References SeedMtx.
Referenced by GetAvgAbsErr(), GetAvgFroErr(), GetInitMtx(), GetMtxFromNm(), TKronMaxLL::Test(), and TKroneckerLL::TestGradDescent().
|
inline |
Definition at line 681 of file kronecker.cpp.
References At(), TStr::ChangeChAll(), TVec< TVal, TSizeTy >::Empty(), IAssert, TVec< TVal, TSizeTy >::Len(), and TStr::SplitOnAllCh().
Definition at line 753 of file kronecker.cpp.
References TStr::CStr(), FailR, TStr::Fmt(), GetMtx(), and TKronMtx().
TStr TKronMtx::GetMtxStr | ( | ) | const |
Definition at line 80 of file kronecker.cpp.
References At(), TStr::Fmt(), GetDim(), and Len().
Referenced by PlotCmpGraphs().
double TKronMtx::GetMtxSum | ( | ) | const |
Definition at line 140 of file kronecker.cpp.
Referenced by GenFastKronecker(), TKroneckerLL::GetAbsErr(), GetEdges(), TKroneckerLL::GetFullGraphLL(), TKroneckerLL::GradDescent(), TKroneckerLL::GradDescent2(), TKroneckerLL::GradDescentConvergence(), TKroneckerLL::MetroGibbsSampleSetup(), TKroneckerLL::RunMStep(), SetForEdges(), TKroneckerLL::SetRandomEdges(), and TKroneckerLL::TestKronDescent().
int TKronMtx::GetNodes | ( | const int & | NIter | ) | const |
Definition at line 119 of file kronecker.cpp.
References GetDim().
Referenced by GenDetKronecker(), GenFastKronecker(), GenKronecker(), TKroneckerLL::GetEmptyGraphLL(), GetNZeroK(), TKroneckerLL::GradDescent(), TKroneckerLL::GradDescent2(), TKroneckerLL::GradDescentConvergence(), and TKroneckerLL::RunKronEM().
|
static |
Definition at line 262 of file kronecker.cpp.
double TKronMtx::GetNoEdgeDLL | ( | const int & | ParamId, |
int | NId1, | ||
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 220 of file kronecker.cpp.
References At(), GetDim(), and MtxDim.
Referenced by TKroneckerLL::CalcGraphDLL(), and TKroneckerLL::GetEmptyGraphDLL().
double TKronMtx::GetNoEdgeLL | ( | int | NId1, |
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 186 of file kronecker.cpp.
References GetEdgeLL().
Referenced by TKroneckerLL::CalcGraphLL(), and TKroneckerLL::GetEmptyGraphLL().
double TKronMtx::GetNoEdgeProb | ( | int | NId1, |
int | NId2, | ||
const int & | NKronIters | ||
) | const |
Definition at line 171 of file kronecker.cpp.
References GetEdgeProb().
int TKronMtx::GetNZeroK | ( | const PNGraph & | Graph | ) | const |
Definition at line 132 of file kronecker.cpp.
References GetKronIter(), GetNodes(), and TNGraph::GetNodes().
|
inline |
Definition at line 26 of file kronecker.h.
References TVec< TVal, TSizeTy >::GetPrimHashCd(), and SeedMtx.
void TKronMtx::GetProbMtx | ( | TKronMtx & | ProbMtx | ) |
|
static |
Definition at line 699 of file kronecker.cpp.
References SetRndMtx().
Referenced by GetInitMtx().
double TKronMtx::GetRowSum | ( | const int & | RowId | ) | const |
Definition at line 147 of file kronecker.cpp.
References At(), and GetDim().
Referenced by TKroneckerLL::GetFullRowLL().
|
inline |
Definition at line 27 of file kronecker.h.
References TVec< TVal, TSizeTy >::GetSecHashCd(), and SeedMtx.
bool TKronMtx::IsEdgePlace | ( | int | NId1, |
int | NId2, | ||
const int & | NKronIters, | ||
const double & | ProbTresh | ||
) | const |
Definition at line 196 of file kronecker.cpp.
Referenced by GenDetKronecker(), and GenKronecker().
bool TKronMtx::IsProbMtx | ( | ) | const |
Definition at line 33 of file kronecker.cpp.
Referenced by TKroneckerLL::InitLL().
|
static |
Definition at line 626 of file kronecker.cpp.
References KronMul(), and Swap().
|
static |
|
inline |
Definition at line 31 of file kronecker.h.
References TVec< TVal, TSizeTy >::Len(), and SeedMtx.
Referenced by AddRndNoise(), TKroneckerLL::CalcApxGraphDLL(), TKroneckerLL::CalcFullApxGraphDLL(), TKroneckerLL::CalcGraphDLL(), TKroneckerLL::GetApxEmptyGraphDLL(), TKroneckerLL::GetApxEmptyGraphLL(), GetLLMtx(), GetMtxStr(), GetMtxSum(), TKroneckerLL::GetParams(), GetProbMtx(), IsProbMtx(), TKroneckerLL::MetroGibbsSampleNext(), TKroneckerLL::SampleGradient(), SetEpsMtx(), SetForEdges(), TKroneckerLL::SetGraph(), ToOneMinusMtx(), and TKroneckerLL::UpdateGraphDLL().
Definition at line 768 of file kronecker.cpp.
References At(), IAssert, IAssertR, TSs::LoadTxt(), and ssfTabSep.
|
inline |
|
static |
Definition at line 479 of file kronecker.cpp.
References TStr::CStr(), TSnap::DelZeroDegNodes(), TStr::Fmt(), GenFastKronecker(), GenKronecker(), TNGraph::GetEdges(), GetKronIter(), TSnap::GetMxWcc(), TNGraph::GetNodes(), gpwLinesPoints, gsdClustCf, gsdHops, gsdInDeg, gsdOutDeg, gsdScc, gsdSngVal, gsdSngVec, gsdWcc, and tmuNodes.
|
static |
!!
Definition at line 514 of file kronecker.cpp.
References TStr::CStr(), TSnap::DelZeroDegNodes(), TStr::Fmt(), GenFastKronecker(), GenKronecker(), TNGraph::GetEdges(), GetKronIter(), GetMtxStr(), TNGraph::GetNodes(), gpwLinesPoints, gsdClustCf, gsdHops, gsdInDeg, gsdOutDeg, gsdScc, gsdSngVal, gsdSngVec, gsdTriadPart, gsdWcc, and tmuNodes.
|
static |
Definition at line 556 of file kronecker.cpp.
References TStr::CStr(), TSnap::DelZeroDegNodes(), TStr::Fmt(), GenFastKronecker(), TNGraph::GetEdges(), TNGraph::GetNodes(), gpwLines, gsdClustCf, gsdHops, gsdInDeg, gsdOutDeg, gsdScc, gsdSngVal, gsdSngVec, gsdWcc, TVec< TVal, TSizeTy >::Len(), and tmuNodes.
|
inline |
Definition at line 39 of file kronecker.h.
References TVec< TVal, TSizeTy >::PutAll(), and SeedMtx.
|
inlinestatic |
Definition at line 108 of file kronecker.h.
References TRnd::PutSeed(), and Rnd.
Referenced by TKronMaxLL::Test().
void TKronMtx::SaveTxt | ( | const TStr & | OutFNm | ) | const |
Definition at line 14 of file kronecker.cpp.
References At(), TStr::CStr(), and GetDim().
void TKronMtx::SetEpsMtx | ( | const double & | Eps1, |
const double & | Eps0, | ||
const int & | Eps1Val = 1 , |
||
const int & | Eps0Val = 0 |
||
) |
void TKronMtx::SetForEdges | ( | const int & | Nodes, |
const int & | Edges | ||
) |
Definition at line 59 of file kronecker.cpp.
References At(), GetKronIter(), GetMtxSum(), and Len().
Referenced by GetInitMtx().
|
inline |
void TKronMtx::SetRndMtx | ( | const int & | MtxDim, |
const double & | MinProb = 0.0 |
||
) |
Definition at line 40 of file kronecker.cpp.
References TVec< TVal, TSizeTy >::Gen(), TRnd::GetUniDev(), TVec< TVal, TSizeTy >::Len(), MtxDim, and SeedMtx.
Referenced by GetRndMtx().
void TKronMtx::Swap | ( | TKronMtx & | KronMtx | ) |
Definition at line 114 of file kronecker.cpp.
References MtxDim, SeedMtx, and TVec< TVal, TSizeTy >::Swap().
Referenced by KronPwr().
void TKronMtx::ToOneMinusMtx | ( | ) |
Definition at line 91 of file kronecker.cpp.
References At(), IAssert, and Len().
|
private |
Definition at line 16 of file kronecker.h.
Referenced by At(), GenFastKronecker(), GenMtx(), GetApxNoEdgeDLL(), GetDim(), GetEdgeDLL(), GetEdgeLL(), GetEdgeProb(), GetLLMtx(), GetNoEdgeDLL(), GetProbMtx(), IsEdgePlace(), operator=(), SetRndMtx(), Swap(), and TKronMtx().
|
static |
Definition at line 13 of file kronecker.h.
Referenced by GetApxNoEdgeDLL(), GetEdgeLL(), GetLLMtx(), GetProbMtx(), TKroneckerLL::InitLL(), and KronSum().
Definition at line 14 of file kronecker.h.
Referenced by AddRndNoise(), GenDetKronecker(), GenFastKronecker(), GenKronecker(), and PutRndSeed().
|
private |
Definition at line 17 of file kronecker.h.
Referenced by At(), Dump(), Empty(), GenDetKronecker(), GenFastKronecker(), GenKronecker(), GenMtx(), GetMtx(), GetPrimHashCd(), GetSecHashCd(), Len(), operator=(), operator==(), PutAllMtx(), SetMtx(), SetRndMtx(), Swap(), and TKronMtx().