MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
properties.hpp File Reference
#include <cmath>
#include <cstddef>
#include <mtl/concepts/magnitude.hpp>
#include <mtl/tensor/tensor.hpp>

Namespaces

namespace  mtl
namespace  mtl::tensor

Functions

template<typename V, std::size_t D>
bool mtl::tensor::is_symmetric (const tensor< V, 2, D > &t, magnitude_t< V > tol=magnitude_t< V >(0))
 Symmetric rank-2 tensor: t(i,j) == t(j,i) (within tol) for all i < j.
template<typename V, std::size_t D>
bool mtl::tensor::is_antisymmetric (const tensor< V, 2, D > &t, magnitude_t< V > tol=magnitude_t< V >(0))
 Antisymmetric (skew) rank-2 tensor: t(i,j) == -t(j,i) (within tol).