2#include <glm/mat2x2.hpp>
7 template <
typename T,
int Dim>
class Vector;
23 DYN_FUNC
static unsigned int rows() {
return 2; }
24 DYN_FUNC
static unsigned int cols() {
return 2; }
26 DYN_FUNC
T& operator() (
unsigned int i,
unsigned int j);
27 DYN_FUNC
const T& operator() (
unsigned int i,
unsigned int j)
const;
32 DYN_FUNC
void setRow(
unsigned int i,
const Vector<T, 2>& vec);
33 DYN_FUNC
void setCol(
unsigned int j,
const Vector<T, 2>& vec);
61 DYN_FUNC
T determinant()
const;
62 DYN_FUNC
T trace()
const;
64 DYN_FUNC
T frobeniusNorm()
const;
65 DYN_FUNC
T oneNorm()
const;
66 DYN_FUNC
T infNorm()
const;
77 template <
typename S,
typename T>
83 template class SquareMatrix<float, 2>;
84 template class SquareMatrix<double, 2>;
static DYN_FUNC unsigned int cols()
static DYN_FUNC unsigned int rows()
DYN_FUNC T * getDataPtr()
This is an implementation of AdditiveCCD based on peridyno.
SquareMatrix< float, 2 > Mat2f
SquareMatrix< double, 2 > Mat2d
DYN_FUNC const Complex< T > operator/(S scale, const Complex< T > &complex)
DYN_FUNC const Complex< T > operator*(S scale, const Complex< T > &complex)
DYN_FUNC bool operator==(const priority_queue< T, Container, Compare > &a, const priority_queue< T, Container, Compare > &b)
DYN_FUNC bool operator!=(const priority_queue< T, Container, Compare > &a, const priority_queue< T, Container, Compare > &b)
DYN_FUNC const Complex< T > operator-(S scale, const Complex< T > &complex)
DYN_FUNC const Complex< T > operator+(S scale, const Complex< T > &complex)