WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
matrixmath.hpp File Reference
#include "Matrix.hpp"
#include "clockwerkerrors.h"

Go to the source code of this file.

Namespaces

namespace  clockwerk

Functions

template<uint32 R1, uint32 C1R2, uint32 C2>
void clockwerk::multiply (const Matrix< R1, C1R2 > &A, const Matrix< C1R2, C2 > &B, Matrix< R1, C2 > &result)
 Function to multiply two matrices.
template<uint32 R, uint32 C>
void clockwerk::multiply (const floating_point &a, const Matrix< R, C > &A, Matrix< R, C > &result)
 Function to multiply a scalar by a matrix.
template<uint32 R, uint32 C>
void clockwerk::eMultiply (const Matrix< R, C > &A, const Matrix< R, C > &B, Matrix< R, C > &result)
 Function to multiply two matrices element-wise.
template<uint32 R, uint32 C>
void clockwerk::add (const floating_point &a, const Matrix< R, C > &A, Matrix< R, C > &result)
 Function to add a scalar to a matrix.
template<uint32 R, uint32 C>
void clockwerk::eAdd (const Matrix< R, C > &A, const Matrix< R, C > &B, Matrix< R, C > &result)
 Function to add two matrices element-wise.
template<uint32 R, uint32 C>
void clockwerk::eSubtract (Matrix< R, C > A, Matrix< R, C > B, Matrix< R, C > &result)
 Function to subtract B from A, element-wise.
template<uint32 R1, uint32 C1R2, uint32 C2>
Matrix< R1, C2 > clockwerk::operator* (const Matrix< R1, C1R2 > &A, const Matrix< C1R2, C2 > &B)
 Overload of matrix multiplication - Two matrices.
template<uint32 R, uint32 C>
Matrix< R, C > clockwerk::operator* (const floating_point &a, const Matrix< R, C > &A)
 Overload of matrix multiplication - Matrix and scalar.
template<uint32 R, uint32 C>
Matrix< R, C > clockwerk::operator* (const Matrix< R, C > &A, const floating_point &a)
template<uint32 R, uint32 C>
Matrix< R, C > clockwerk::operator+ (const Matrix< R, C > &A, const Matrix< R, C > &B)
 Overload of matrix addition - Two matrices.
template<uint32 R, uint32 C>
Matrix< R, C > clockwerk::operator+ (const floating_point &a, const Matrix< R, C > &A)
 Overload of matrix addition - Matrix and scalar.
template<uint32 R, uint32 C>
Matrix< R, C > clockwerk::operator+ (const Matrix< R, C > &A, const floating_point &a)
template<uint32 R, uint32 C>
Matrix< R, C > clockwerk::operator- (const Matrix< R, C > &A, const Matrix< R, C > &B)
 Returns value – less efficient in some cases.
template<uint32 M, uint32 K>
int16 clockwerk::cholSolve (const Matrix< M, M > &A, const Matrix< M, K > &B, Matrix< M, K > &X)
 Perform cholesky solve Ax=b on square, posdef matrix A and put the solution in X.