Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
matrixutils.h File Reference
#include "ion/math/matrix.h"
#include "ion/math/utils.h"
#include "ion/math/vector.h"
Include dependency graph for matrixutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ion
 Copyright 2016 Google Inc.
 
 ion::math
 
 ion::math::internal
 Internal helper functions.
 

Functions

template<int Dimension, typename T , typename VectorType >
VectorType ion::math::internal::MultiplyMatrixAndVector (const Matrix< Dimension, T > &m, const VectorType &v)
 Multiplies a matrix and some type of column vector (Vector or Point) to produce another column vector of the same type. More...
 
template<int Dimension, typename T >
Matrix< Dimension, Tion::math::Transpose (const Matrix< Dimension, T > &m)
 Public functions. More...
 
template<int Dimension, typename T >
Vector< Dimension, Tion::math::operator* (const Matrix< Dimension, T > &m, const Vector< Dimension, T > &v)
 Multiplies a Matrix and a column Vector of the same Dimension to produce another column Vector. More...
 
template<int Dimension, typename T >
Point< Dimension, Tion::math::operator* (const Matrix< Dimension, T > &m, const Point< Dimension, T > &p)
 Multiplies a Matrix and a Point of the same Dimension to produce another Point. More...
 
template<int Dimension, typename T >
Vector< Dimension, Tion::math::Row (const Matrix< Dimension, T > &m, int row)
 Returns a particular row of a matrix as a vector. More...
 
template<int Dimension, typename T >
Vector< Dimension, Tion::math::Column (const Matrix< Dimension, T > &m, int col)
 Returns a particular column of a matrix as a vector. More...
 
template<int Dimension, typename T >
ION_API T ion::math::Determinant (const Matrix< Dimension, T > &m)
 Returns the determinant of the matrix. More...
 
template<int Dimension, typename T >
ION_API Matrix< Dimension, Tion::math::CofactorMatrix (const Matrix< Dimension, T > &m)
 Returns the signed cofactor matrix (adjunct) of the matrix. More...
 
template<int Dimension, typename T >
ION_API Matrix< Dimension, Tion::math::AdjugateWithDeterminant (const Matrix< Dimension, T > &m, T *determinant)
 Returns the adjugate of the matrix, which is defined as the transpose of the cofactor matrix. More...
 
template<int Dimension, typename T >
Matrix< Dimension, Tion::math::Adjugate (const Matrix< Dimension, T > &m)
 Returns the adjugate of the matrix, which is defined as the transpose of the cofactor matrix. More...
 
template<int Dimension, typename T >
ION_API Matrix< Dimension, Tion::math::InverseWithDeterminant (const Matrix< Dimension, T > &m, T *determinant)
 Returns the inverse of the matrix. More...
 
template<int Dimension, typename T >
Matrix< Dimension, Tion::math::Inverse (const Matrix< Dimension, T > &m)
 Returns the inverse of the matrix. More...
 
template<int Dimension, typename T >
bool ion::math::MatrixAlmostOrthogonal (const Matrix< Dimension, T > &m, T tolerance)
 Returns true if the dot product of all column vector pairs in the matrix is less than a provided tolerance, and if all column vectors have unit length. More...