Support for matrix algebra. More...
Functions | |
template<class T , int M> | |
constexpr vec< T, M > | mul (const vec< T, M > &a, const T &b) |
template<class T , int M> | |
constexpr vec< T, M > | mul (const T &b, const vec< T, M > &a) |
template<class T , int M, int N> | |
constexpr mat< T, M, N > | mul (const mat< T, M, N > &a, const T &b) |
template<class T , int M, int N> | |
constexpr mat< T, M, N > | mul (const T &b, const mat< T, M, N > &a) |
template<class T , int M> | |
constexpr vec< T, M > | mul (const vec< T, M > &a, const vec< T, M > &b) |
template<class T , int M> | |
constexpr vec< T, M > | mul (const mat< T, M, 1 > &a, const vec< T, 1 > &b) |
template<class T , int M> | |
constexpr vec< T, M > | mul (const mat< T, M, 2 > &a, const vec< T, 2 > &b) |
template<class T , int M> | |
constexpr vec< T, M > | mul (const mat< T, M, 3 > &a, const vec< T, 3 > &b) |
template<class T , int M> | |
constexpr vec< T, M > | mul (const mat< T, M, 4 > &a, const vec< T, 4 > &b) |
template<class T , int M, int N> | |
constexpr mat< T, M, 1 > | mul (const mat< T, M, N > &a, const mat< T, N, 1 > &b) |
template<class T , int M, int N> | |
constexpr mat< T, M, 2 > | mul (const mat< T, M, N > &a, const mat< T, N, 2 > &b) |
template<class T , int M, int N> | |
constexpr mat< T, M, 3 > | mul (const mat< T, M, N > &a, const mat< T, N, 3 > &b) |
template<class T , int M, int N> | |
constexpr mat< T, M, 4 > | mul (const mat< T, M, N > &a, const mat< T, N, 4 > &b) |
template<class T , int M, int N, int P> | |
constexpr vec< T, M > | mul (const mat< T, M, N > &a, const mat< T, N, P > &b, const vec< T, P > &c) |
template<class T , int M, int N, int P, int Q> | |
constexpr mat< T, M, Q > | mul (const mat< T, M, N > &a, const mat< T, N, P > &b, const mat< T, P, Q > &c) |
template<class T , int M, int N, int P, int Q> | |
constexpr vec< T, M > | mul (const mat< T, M, N > &a, const mat< T, N, P > &b, const mat< T, P, Q > &c, const vec< T, Q > &d) |
template<class T , int M, int N, int P, int Q, int R> | |
constexpr mat< T, M, R > | mul (const mat< T, M, N > &a, const mat< T, N, P > &b, const mat< T, P, Q > &c, const mat< T, Q, R > &d) |
template<class T , int M> | |
constexpr mat< T, M, 1 > | outerprod (const vec< T, M > &a, const vec< T, 1 > &b) |
template<class T , int M> | |
constexpr mat< T, M, 2 > | outerprod (const vec< T, M > &a, const vec< T, 2 > &b) |
template<class T , int M> | |
constexpr mat< T, M, 3 > | outerprod (const vec< T, M > &a, const vec< T, 3 > &b) |
template<class T , int M> | |
constexpr mat< T, M, 4 > | outerprod (const vec< T, M > &a, const vec< T, 4 > &b) |
template<class T > | |
constexpr vec< T, 1 > | diagonal (const mat< T, 1, 1 > &a) |
template<class T > | |
constexpr vec< T, 2 > | diagonal (const mat< T, 2, 2 > &a) |
template<class T > | |
constexpr vec< T, 3 > | diagonal (const mat< T, 3, 3 > &a) |
template<class T > | |
constexpr vec< T, 4 > | diagonal (const mat< T, 4, 4 > &a) |
template<class T , int N> | |
constexpr T | trace (const mat< T, N, N > &a) |
template<class T , int M> | |
constexpr mat< T, M, 1 > | transpose (const mat< T, 1, M > &m) |
template<class T , int M> | |
constexpr mat< T, M, 2 > | transpose (const mat< T, 2, M > &m) |
template<class T , int M> | |
constexpr mat< T, M, 3 > | transpose (const mat< T, 3, M > &m) |
template<class T , int M> | |
constexpr mat< T, M, 4 > | transpose (const mat< T, 4, M > &m) |
template<class T , int M> | |
constexpr mat< T, 1, M > | transpose (const vec< T, M > &m) |
template<class T > | |
constexpr mat< T, 1, 1 > | adjugate (const mat< T, 1, 1 > &a) |
template<class T > | |
constexpr mat< T, 2, 2 > | adjugate (const mat< T, 2, 2 > &a) |
template<class T > | |
constexpr mat< T, 3, 3 > | adjugate (const mat< T, 3, 3 > &a) |
template<class T > | |
constexpr mat< T, 4, 4 > | adjugate (const mat< T, 4, 4 > &a) |
template<class T , int N> | |
constexpr mat< T, N, N > | comatrix (const mat< T, N, N > &a) |
template<class T > | |
constexpr T | determinant (const mat< T, 1, 1 > &a) |
template<class T > | |
constexpr T | determinant (const mat< T, 2, 2 > &a) |
template<class T > | |
constexpr T | determinant (const mat< T, 3, 3 > &a) |
template<class T > | |
constexpr T | determinant (const mat< T, 4, 4 > &a) |
template<class T , int N> | |
constexpr mat< T, N, N > | inverse (const mat< T, N, N > &a) |
Support for matrix algebra.