pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
Namespaces | Functions
view.hpp File Reference
#include <prc/core/tensor/views/reference.hpp>
#include <prc/core/tensor/views/reference_to_const.hpp>

Go to the source code of this file.

Namespaces

namespace  pRC
 

Functions

template<class X , If< IsTensorView< RemoveReference< X > > > = 0>
static constexpr X pRC::view (X &&a)
 Returns a TensorView obtained from a TensorView.
 
template<class T , Size... Ns>
static constexpr auto pRC::view (Tensor< T, Ns... > const &a)
 Returns a TensorView obtained from a const Tensor.
 
template<class T , Size... Ns>
static constexpr auto pRC::view (Tensor< T, Ns... > &a)
 Returns a TensorView obtained from a Tensor.
 
template<class T , Size... Ns>
static constexpr auto pRC::view (Tensor< T, Ns... > const &&)=delete
 A TensorView can not be created from an rvalue Tensor.