YAGE
Yet Another Game Engine
Classes | Typedefs | Functions
matrix.hpp File Reference

Templated matrix class. More...

#include <algorithm>
#include <exception>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  yage::Matrix< Rows, Cols, Type >
 
class  yage::detail::Row< Rows, Cols, Type >
 
class  yage::Matrix< Rows, Cols, Type >
 
class  yage::Vector< Rows, Type >
 
class  yage::Vector2< Type >
 

Typedefs

typedef Vector2< double > yage::Vector2d
 

Functions

template<int M, int N, class T >
Matrix< M, N, T > yage::operator+ (Matrix< M, N, T > lhs, const Matrix< M, N, T > &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > yage::operator- (Matrix< M, N, T > lhs, const Matrix< M, N, T > &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > yage::operator+ (Matrix< M, N, T > lhs, const T &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > yage::operator+ (const T &lhs, Matrix< M, N, T > rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > yage::operator- (Matrix< M, N, T > lhs, const T &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > yage::operator- (const T &lhs, Matrix< M, N, T > rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > yage::operator* (Matrix< M, N, T > lhs, const T &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > yage::operator* (const T &lhs, Matrix< M, N, T > rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > yage::operator/ (Matrix< M, N, T > lhs, const T &rhs)
 
template<int M, int N, class T >
bool yage::operator== (const Matrix< M, N, T > &lhs, const Matrix< M, N, T > &rhs)
 
template<int M, int N, class T >
std::ostream & yage::operator<< (std::ostream &os, const Matrix< M, N, T > &mat)
 
template<int M, int N, class T >
Matrix< N, M, T > yage::matrix::transpose (const Matrix< M, N, T > &m)
 
template<int R, class T >
yage::matrix::dot (const Matrix< R, 1, T > &m1, const Matrix< R, 1, T > &m2)
 
template<int M, int N, int P, int Q, class T >
Matrix< M, Q, T > yage::matrix::multiply (const Matrix< M, N, T > &m1, const Matrix< P, Q, T > &m2)
 

Detailed Description

Templated matrix class.

Matrix and Vector class with arbitrary type and precision.