SyTen

◆ visnz() [1/2]

template<typename F >
void syten::STensorImpl::STensor::visnz ( func)
inline

Visit function, applies the supplied lambda func to the currently active tensor if it has non-zero rank.

Example\n
in.visnz([](auto& arg) { for(auto& block : arg) { makeRandom(block.m); } }

References if_constexpr, SYTEN_TENSOR_RANK, and visit().

+ Here is the call graph for this function: