Mjolnir Core
Core functionality of the Mjolnir API

◆ determinant_2x2() [1/2]

auto determinant_2x2 ( const std::array< T_RegisterType, 2 > &  mat) -> x86::ElementType<T_RegisterType>
inlinenoexcept

Calculate the determinant of a 2x2 matrix.

Template Parameters
T_RegisterTypeVector register type that represents a row or column of the matrix
Parameters
[in]matThe matrix data as array in row-major or column-major format. Each register represents a single row/column
Returns
Determinant of the matrix