lin
|
Tests if a tensor type is "square". More...
#include <lin/core/traits/tensor.hpp>
Tests if a tensor type is "square".
C | Tensor 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".