Om  1.0.0
A universal framework for multimedia simulation
Namespaces | Functions
omTensorMath.h File Reference
#include "omMathConfig.h"

Namespaces

 om
 The enclosing namespace for the entire Om library.
 
 om::math
 A namespace containing classes and functions that do fast math operations.
 

Functions

Bool om::math::add (Tensor &tensor1, const Tensor &tensor2)
 Add a tensor to another tensor, modifying the first tensor. More...
 
Bool om::math::add (Tensor &result, const Tensor &tensor1, const Tensor &tensor2)
 Add two tensors, storing the result in a third tensor. More...
 
Bool om::math::subtract (Tensor &tensor1, const Tensor &tensor2)
 Add a tensor to another tensor, modifying the first tensor. More...
 
Bool om::math::subtract (Tensor &result, const Tensor &tensor1, const Tensor &tensor2)
 Add two tensors, storing the result in a third tensor. More...
 
Bool om::math::multiply (Tensor &tensor1, const Tensor &tensor2)
 Add a tensor to another tensor, modifying the first tensor. More...
 
Bool om::math::multiply (Tensor &result, const Tensor &tensor1, const Tensor &tensor2)
 Add two tensors, storing the result in a third tensor. More...
 
Bool om::math::multiplyScalars (Tensor &tensor1, const Tensor &tensor2)
 Add a tensor to another tensor, modifying the first tensor. More...
 
Bool om::math::multiplyScalars (Tensor &result, const Tensor &tensor1, const Tensor &tensor2)
 Add two tensors, storing the result in a third tensor. More...
 
Bool om::math::divide (Tensor &tensor1, const Tensor &tensor2)
 Add a tensor to another tensor, modifying the first tensor. More...
 
Bool om::math::divide (Tensor &result, const Tensor &tensor1, const Tensor &tensor2)
 Add two tensors, storing the result in a third tensor. More...
 
Bool om::math::divideScalars (Tensor &tensor1, const Tensor &tensor2)
 Add a tensor to another tensor, modifying the first tensor. More...
 
Bool om::math::divideScalars (Tensor &result, const Tensor &tensor1, const Tensor &tensor2)
 Add two tensors, storing the result in a third tensor. More...
 
Bool om::math::lu (const Tensor &A, Tensor &L, Tensor &U)
 Compute the LU factorization of an input matrix A returning the L and U matrices in the output parameters. More...
 
Bool om::math::qr (const Tensor &A, Tensor &Q, Tensor &R)
 Do a QR factorization of the specified matrix, returning the Q and R matrices in the output parameters. More...
 
Bool om::math::leastSquares (const Tensor &A, const Tensor &b, Tensor &x)
 Use a least-squares algorithm to find the best fitting solution for a linear system A*x = b. More...
 
Bool om::math::solve (const Tensor &A, const Tensor &b, Tensor &x)
 Solve a linear system A*x = b, returning whether or not it was able to be solved. More...
 
Bool om::math::invert (const Tensor &A, Tensor &inverse)
 Compute the inverse of the matrix A, returning whether or not it was able to be inverted. More...