SyTen

◆ visit() [2/2]

template<typename F >
auto syten::STensorImpl::STensor::visit ( func) const
inline

Visit-function, applies the supplied lambda func to the currently active tensor and returns the result.

Example\n
in.visit([](auto const& arg) { std::cerr << SYTEN_TENSOR_RANK(arg); });

References tensor.