OpenIndy-Core  0.2.0.43
oi::math::LAArmadillo Class Reference

The LAArmadillo class LinearAlgebra implementation using the armadillo library. More...

#include <laarmadillo.h>

Inheritance diagram for oi::math::LAArmadillo:
oi::math::LinearAlgebra

Public Member Functions

 LAArmadillo ()
 
 ~LAArmadillo ()
 
void addIn (OiVec &result, const OiVec &v1, const OiVec &v2)
 LAArmadillo::addIn Add v2 to v1. More...
 
void addIn (OiMat &result, const OiMat &m1, const OiMat &m2)
 LAArmadillo::addIn Add m2 to m1. More...
 
void substract (OiVec &result, const OiVec &v1, const OiVec &v2)
 LAArmadillo::substract Substract v2 from v1. More...
 
void substract (OiMat &result, const OiMat &m1, const OiMat &m2)
 LAArmadillo::substract Substract m2 from m1. More...
 
void multiply (OiMat &result, const OiMat &m1, const OiMat &m2)
 LAArmadillo::multiply Multiply m2 by m1. More...
 
void multiply (OiVec &result, const OiMat &m, const OiVec &v)
 LAArmadillo::multiply Multiply v by m. More...
 
void multiply (OiMat &result, const double &s, const OiMat &m)
 LAArmadillo::multiply Multiply m by s. More...
 
void multiply (OiVec &result, const double &s, const OiVec &v)
 LAArmadillo::multiply Multiply v by s. More...
 
bool invert (OiMat &result, const OiMat &m)
 LAArmadillo::invert Invert m. More...
 
void transpose (OiMat &result, const OiMat &m)
 LAArmadillo::transpose Transpose m. More...
 
bool svd (OiMat &u, OiVec &d, OiMat &v, const OiMat &x)
 LAArmadillo::svd Compute singular value decomposition of x. More...
 
void cross (OiVec &result, const OiVec &a, const OiVec &b)
 LAArmadillo::cross Calculate cross product of a and b. More...
 
void dot (double &result, const OiVec &a, const OiVec &b)
 LAArmadillo::dot Calculate scalar product of a and b. More...
 
void det (double &result, const OiMat &a)
 LAArmadillo::det Calculate the determinant of a. More...
 
bool solve (OiVec &x, const OiMat &A, const OiVec &b)
 LAArmadillo::solve Solves a linear equation of the form A*x = b (x = inv(A)*b) More...
 
bool solve (OiMat &X, const OiMat &A, const OiMat &B)
 LAArmadillo::solve Solves a linear equation of the form A*X = B (X = inv(A)*B) More...
 
- Public Member Functions inherited from oi::math::LinearAlgebra
virtual ~LinearAlgebra ()
 

Detailed Description

The LAArmadillo class LinearAlgebra implementation using the armadillo library.

Constructor & Destructor Documentation

LAArmadillo::LAArmadillo ( )
LAArmadillo::~LAArmadillo ( )

Member Function Documentation

void LAArmadillo::addIn ( OiVec result,
const OiVec v1,
const OiVec v2 
)
virtual

LAArmadillo::addIn Add v2 to v1.

Parameters
result
v1
v2

Implements oi::math::LinearAlgebra.

void LAArmadillo::addIn ( OiMat result,
const OiMat m1,
const OiMat m2 
)
virtual

LAArmadillo::addIn Add m2 to m1.

Parameters
result
m1
m2

Implements oi::math::LinearAlgebra.

void LAArmadillo::cross ( OiVec result,
const OiVec a,
const OiVec b 
)
virtual

LAArmadillo::cross Calculate cross product of a and b.

Parameters
result
a
b

Implements oi::math::LinearAlgebra.

void LAArmadillo::det ( double &  result,
const OiMat a 
)
virtual

LAArmadillo::det Calculate the determinant of a.

Parameters
result
a

Implements oi::math::LinearAlgebra.

void LAArmadillo::dot ( double &  result,
const OiVec a,
const OiVec b 
)
virtual

LAArmadillo::dot Calculate scalar product of a and b.

Parameters
result
a
b

Implements oi::math::LinearAlgebra.

bool LAArmadillo::invert ( OiMat result,
const OiMat m 
)
virtual

LAArmadillo::invert Invert m.

Parameters
result
m
Returns

Implements oi::math::LinearAlgebra.

void LAArmadillo::multiply ( OiMat result,
const OiMat m1,
const OiMat m2 
)
virtual

LAArmadillo::multiply Multiply m2 by m1.

Parameters
result
m1
m2

Implements oi::math::LinearAlgebra.

void LAArmadillo::multiply ( OiVec result,
const OiMat m,
const OiVec v 
)
virtual

LAArmadillo::multiply Multiply v by m.

Parameters
result
m
v

Implements oi::math::LinearAlgebra.

void LAArmadillo::multiply ( OiMat result,
const double &  s,
const OiMat m 
)
virtual

LAArmadillo::multiply Multiply m by s.

Parameters
result
s
m

Implements oi::math::LinearAlgebra.

void LAArmadillo::multiply ( OiVec result,
const double &  s,
const OiVec v 
)
virtual

LAArmadillo::multiply Multiply v by s.

Parameters
result
s
v

Implements oi::math::LinearAlgebra.

bool LAArmadillo::solve ( OiVec x,
const OiMat A,
const OiVec b 
)
virtual

LAArmadillo::solve Solves a linear equation of the form A*x = b (x = inv(A)*b)

Parameters
x
A
b
Returns

Implements oi::math::LinearAlgebra.

bool LAArmadillo::solve ( OiMat X,
const OiMat A,
const OiMat B 
)
virtual

LAArmadillo::solve Solves a linear equation of the form A*X = B (X = inv(A)*B)

Parameters
X
A
B
Returns

Implements oi::math::LinearAlgebra.

void LAArmadillo::substract ( OiVec result,
const OiVec v1,
const OiVec v2 
)
virtual

LAArmadillo::substract Substract v2 from v1.

Parameters
result
v1
v2

Implements oi::math::LinearAlgebra.

void LAArmadillo::substract ( OiMat result,
const OiMat m1,
const OiMat m2 
)
virtual

LAArmadillo::substract Substract m2 from m1.

Parameters
result
m1
m2

Implements oi::math::LinearAlgebra.

bool LAArmadillo::svd ( OiMat u,
OiVec d,
OiMat v,
const OiMat x 
)
virtual

LAArmadillo::svd Compute singular value decomposition of x.

Parameters
u
d
v
x
Returns

Implements oi::math::LinearAlgebra.

void LAArmadillo::transpose ( OiMat result,
const OiMat m 
)
virtual

LAArmadillo::transpose Transpose m.

Parameters
result
m

Implements oi::math::LinearAlgebra.


The documentation for this class was generated from the following files: