pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
Namespaces | Functions
is_diagonal.hpp File Reference
#include <prc/core/functors/diagonal.hpp>
#include <prc/core/functors/is_approx.hpp>
#include <prc/core/tensor/operator/functions/diagonal.hpp>
#include <prc/core/tensor/type_traits.hpp>
#include <prc/core/value/limits.hpp>

Go to the source code of this file.

Namespaces

namespace  pRC
 

Functions

template<class X , class R = RemoveReference<X>, If< IsTensorish< R > > = 0, If< IsInvocable< Diagonal, X > > = 0, If< IsInvocable< IsApprox, ResultOf< Diagonal, X >, X > > = 0, class TT = typename R::Value>
static constexpr auto pRC::isDiagonal (X &&a, TT const &tolerance=NumericLimits< TT >::tolerance())
 Checks if a Tensor is diagonal.