SyTen

◆ genRandom() [2/2]

Tensor< 3 > syten::genRandom ( Basis const &  firstBasis,
Basis const &  secondBasis,
Index  maxBlockSize = 200,
Ordinal const &  resultIndex = Ordinal::Second 
)

Generates a random rank-3 tensor.

Parameters
firstBasisfirst basis of the tensor
secondBasissecond basis
maxBlockSizemaximal blocksize on the resulting product basis
resultIndexwhether the resulting product basis is first, second or third

Referenced by syten::MPS::DMRG::Worker::expand_to_left(), syten::MPS::DMRG::Worker::expand_to_right(), syten::MPS::RandomState::generateCompleteState(), syten::MPS::RandomState::generateNearVacuumState(), syten::T3N::RandomState::generateRandomBranching(), syten::T3N::RandomState::generateRandomPhysical(), syten::IPEPS::genRandomTensor(), syten::Pyten::init_tensor(), syten::MPS::DMRG::Worker::solveLocal(), and syten::MPS::DMRG::Worker::sync().

+ Here is the caller graph for this function: