SyTen

◆ save()

template<Rank rank, typename Scalar = SDef>
template<typename Archive >
void syten::GenericDenseTensorImpl::GenericDenseTensor< rank, Scalar >::save ( Archive &  ar,
const unsigned int   
) const
inline

Saving to an archive.

The variant is a bit annoying to serialise because we can't get a constexpr index out of it at runtime and hence have to do the run-around like here using the otherwise superfluous switch statement.

References syten::GenericDenseTensorImpl::GenericDenseTensor< rank, Scalar >::storage, and SYTEN_ASSERT_MSG.