Calculate tensor(matrix) determinant.
You can find more information in comments below.
template<class TYPE>
TYPE determinant(const TTensor<TYPE, 1u, 1u> &m); // Return determinant of 1x1 tensor(matrix)
template<class TYPE>
TYPE determinant(const TTensor<TYPE, 2u, 2u> &m); // Return determinant of 2x2 tensor(matrix)
template<class TYPE, size_t SIZE>
typename std::enable_if<(SIZE > 2), TYPE>::type determinant(const TTensor<TYPE, SIZE, SIZE> &m); // Return determinant of NxN tensor(matrix)
Namespace: | nitisa::math |
Include: | Nitisa/Modules/Math/Tensor.h |