|
pRC
multi-purpose Tensor Train library for C++
|
#include <prc/core/basic/functions/is_even.hpp>#include <prc/core/functors/view.hpp>#include <prc/core/tensor/operator/views/from_diagonal.hpp>Go to the source code of this file.
Namespaces | |
| namespace | pRC |
Functions | |
| template<Size... Ds, class X , class R = RemoveReference<X>, If< IsTensorish< R > > = 0, If< IsInvocable< View, X > > = 0, If< IsSatisfied<(isEven(sizeof...(Ds)))> > = 0, If< IsSatisfied<(sizeof...(Ds)/2==typename R::Dimension())> > = 0, If< IsSatisfied<(cut< 2, 0 >(Sizes< Ds... >()) >=typename R::Sizes())> , If< IsSatisfied<(cut< 2, 1 >(Sizes< Ds... >()) >=typename R::Sizes())> > | |
| static constexpr auto | pRC::fromDiagonal (X &&a) |
| Constructs a diagonal Tensor with given Sizes from a Tensor containing the diagonal. | |
| template<Size... Ds, class X , class R = RemoveReference<X>, If< IsTensorish< R > > = 0, If< Not< IsInvocable< View, X > > > = 0, If< IsInvocable< FromDiagonal< Ds... >, X & > > = 0> | |
| static constexpr auto | pRC::fromDiagonal (X &&a) |
| Constructs a diagonal Tensor with given Sizes from a Tensor containing the diagonal. | |
| template<class X , class R = RemoveReference<X>, If< IsTensorish< R > > = 0> | |
| static constexpr auto | pRC::fromDiagonal (X &&a) |
| Constructs a diagonal Tensor from a Tensor containing the diagonal. | |