3#ifndef pRC_CORE_TENSOR_IDENTITY_H
4#define pRC_CORE_TENSOR_IDENTITY_H
35 "Diagonal has to be invocable for T.");
53 template<
class X, If<IsConstructible<
typename T::Type, X>> = 0>
Definition cholesky.hpp:18
static constexpr auto diagonal(X &&a)
Transforms a Tensor into diagonal form.
Definition diagonal.hpp:26
std::enable_if_t< B{}, int > If
Definition type_traits.hpp:68
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13
constexpr auto operator()()
Returns the identity of Tensor class T, i.e. a Tensor with diagonal filled with 1s.
Definition identity.hpp:40
constexpr auto operator()(X &&value)
Returns the scaled identity of Tensor class T, i.e. a Tensor with diagonal filled with the scaling fa...
Definition identity.hpp:54
Definition type_traits.hpp:262
Definition type_traits.hpp:60
Definition type_traits.hpp:16