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

Go to the source code of this file.

Namespaces

namespace  pRC
 

Functions

template<class XA , class XB , class RA = RemoveReference<XA>, class RB = RemoveReference<XB>, If< IsTensorish< RA > > = 0, If< IsInvocable< View, XA > > = 0, If< IsTensorish< RB > > = 0, If< IsInvocable< View, XB > > = 0, If< IsSame< typename RA::Dimension, typename RB::Dimension > > = 0, If< HasCommon< typename RA::Type, typename RB::Type > > = 0>
static constexpr auto pRC::directSum (XA &&a, XB &&b)
 Calculates the direct sum of two Tensors.
 
template<class XA , class XB , class RA = RemoveReference<XA>, class RB = RemoveReference<XB>, If< IsTensorish< RA > > = 0, If< IsTensorish< RB > > = 0, If< Not< All< IsInvocable< View, XA >, IsInvocable< View, XB > > > > = 0, If< IsInvocable< DirectSum, XA &, XB & > > = 0>
static constexpr auto pRC::directSum (XA &&a, XB &&b)
 Calculates the direct sum of two Tensors.