lin
lin::internal::is_square< C > Struct Template Reference

Tests if a tensor type is "square". More...

#include <lin/core/traits/tensor.hpp>

Inheritance diagram for lin::internal::is_square< C >:
lin::internal::conjunction< is_tall< C >, is_short< C > >

Detailed Description

template<class C>
struct lin::internal::is_square< C >

Tests if a tensor type is "square".

Template Parameters
CTensor type.

A tensor type is determined to be "short" if its both tall and short (i.e its max column count is equal to its max column count).

This serves to screen tensor types to ensure they can have the same number of rows as columns. An example use case would be in a std::enable_if guard on a function taking the trace of a matrix. A prediction of this operation is the matrix being "square".

See also
internal::is_tall
internal::is_short

The documentation for this struct was generated from the following file: