20#ifndef INCLUDE_WYKOBI_MATRIX 21#define INCLUDE_WYKOBI_MATRIX 32template <
typename T, std::
size_t M, std::
size_t N>
42 const T&
operator()(std::size_t x, std::size_t y)
const {
return data[y][x]; }
44 T&
operator()(std::size_t x, std::size_t y) {
return data[y][x]; }
46 const T&
operator()(std::size_t i)
const {
return dptr[i]; }
50 const T&
operator[](std::size_t i)
const {
return dptr[i]; }
64 void swap(
const unsigned int& x1,
const unsigned int& y1,
65 const unsigned int& x2,
const unsigned int& y2);
67 std::size_t
size()
const {
return M * N; }
102template <
typename T, std::
size_t N>
115#include "wykobi_matrix.inl" Definition wykobi_matrix.hpp:33
matrix< T, M, N > & operator+=(const T &value)
matrix< T, M, N > & operator=(const matrix< T, M, N > &m)
T & operator()(std::size_t x, std::size_t y)
Definition wykobi_matrix.hpp:44
void swap(const unsigned int &x1, const unsigned int &y1, const unsigned int &x2, const unsigned int &y2)
matrix< T, M, N > & operator-=(const T &value)
T & operator()(std::size_t i)
Definition wykobi_matrix.hpp:48
const T & operator()(std::size_t x, std::size_t y) const
Definition wykobi_matrix.hpp:42
const T & operator[](std::size_t i) const
Definition wykobi_matrix.hpp:50
~matrix()
Definition wykobi_matrix.hpp:37
matrix()
Definition wykobi_matrix.hpp:35
matrix< T, M, N > & operator*=(const T &value)
const T & operator()(std::size_t i) const
Definition wykobi_matrix.hpp:46
matrix< T, M, N > & operator+=(const matrix< T, M, N > &_matrix)
matrix< T, M, N > & operator-=(const matrix< T, M, N > &_matrix)
T & operator[](std::size_t i)
Definition wykobi_matrix.hpp:52
matrix(const matrix< T, M, N > &m)
matrix< T, M, N > & operator/=(const T &value)
std::size_t size() const
Definition wykobi_matrix.hpp:67
Definition wykobi.hpp:582
void eigenvector(const matrix< T, 2, 2 > &matrix, vector2d< T > &eigenvector1, vector2d< T > &eigenvector2)
void inverse(matrix< T, 2, 2 > &out_matrix, const matrix< T, 2, 2 > &in_matrix)
T det(const matrix< T, 1, 1 > &matrix)
void transpose(matrix< T, 1, 1 > &matrix)
void eigen_values(const matrix< T, 2, 2 > &matrix, T &eigen_value1, T &eigen_value2)