SyTen

◆ return_as_standard()

template<Rank rank, typename Scalar = SDef>
GenericDenseTensor syten::GenericDenseTensorImpl::GenericDenseTensor< rank, Scalar >::return_as_standard ( ) const
inline

Returns a GenericDenseTensor in standard format representing the same object as *this.

Creates a copy if *this is already in standard format, otherwise creates a new standard format tensor. Crucially, this does not first copy *this and then calls make_standard() on the copy but achieves the same in one step.

References syten::GenericDenseTensorImpl::GenericDenseTensor< rank, Scalar >::is_standard(), and syten::GenericDenseTensorImpl::GenericDenseTensor< rank, Scalar >::storage.

Referenced by syten::TensorBlock< rank >::return_as_dense_standard().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: