OpenIndy-Core  0.2.0.43
oi::math::LinearAlgebra Class Referenceabstract

The LinearAlgebra class. More...

#include <linearalgebra.h>

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

Public Member Functions

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

Detailed Description

The LinearAlgebra class.

Constructor & Destructor Documentation

virtual oi::math::LinearAlgebra::~LinearAlgebra ( )
inlinevirtual

Member Function Documentation

virtual void oi::math::LinearAlgebra::addIn ( OiVec result,
const OiVec v1,
const OiVec v2 
)
pure virtual

addIn Add v2 to v1

Parameters
result
v1
v2

Implemented in oi::math::LAArmadillo.

virtual void oi::math::LinearAlgebra::addIn ( OiMat result,
const OiMat m1,
const OiMat m2 
)
pure virtual

addIn Add m2 to m1

Parameters
result
m1
m2

Implemented in oi::math::LAArmadillo.

virtual void oi::math::LinearAlgebra::cross ( OiVec result,
const OiVec a,
const OiVec b 
)
pure virtual

cross Calculate cross product of a and b

Parameters
result
a
b

Implemented in oi::math::LAArmadillo.

virtual void oi::math::LinearAlgebra::det ( double &  result,
const OiMat a 
)
pure virtual

det Calculate the determinant of a

Parameters
result
a

Implemented in oi::math::LAArmadillo.

virtual void oi::math::LinearAlgebra::dot ( double &  result,
const OiVec a,
const OiVec b 
)
pure virtual

dot Calculate scalar product of a and b

Parameters
result
a
b

Implemented in oi::math::LAArmadillo.

virtual bool oi::math::LinearAlgebra::invert ( OiMat result,
const OiMat m 
)
pure virtual

invert Invert m

Parameters
result
m
Returns

Implemented in oi::math::LAArmadillo.

virtual void oi::math::LinearAlgebra::multiply ( OiMat result,
const OiMat m1,
const OiMat m2 
)
pure virtual

multiply Multiply m2 by m1

Parameters
result
m1
m2

Implemented in oi::math::LAArmadillo.

virtual void oi::math::LinearAlgebra::multiply ( OiVec result,
const OiMat m,
const OiVec v 
)
pure virtual

multiply Multiply v by m

Parameters
result
m
v

Implemented in oi::math::LAArmadillo.

virtual void oi::math::LinearAlgebra::multiply ( OiMat result,
const double &  s,
const OiMat m 
)
pure virtual

multiply Multiply m by s

Parameters
result
s
m

Implemented in oi::math::LAArmadillo.

virtual void oi::math::LinearAlgebra::multiply ( OiVec result,
const double &  s,
const OiVec v 
)
pure virtual

multiply Multiply v by s

Parameters
result
s
v

Implemented in oi::math::LAArmadillo.

virtual bool oi::math::LinearAlgebra::solve ( OiVec x,
const OiMat A,
const OiVec b 
)
pure virtual

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

Parameters
x
A
b
Returns

Implemented in oi::math::LAArmadillo.

virtual bool oi::math::LinearAlgebra::solve ( OiMat X,
const OiMat A,
const OiMat B 
)
pure virtual

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

Parameters
X
A
B
Returns

Implemented in oi::math::LAArmadillo.

virtual void oi::math::LinearAlgebra::substract ( OiVec result,
const OiVec v1,
const OiVec v2 
)
pure virtual

substract Substract v2 from v1

Parameters
result
v1
v2

Implemented in oi::math::LAArmadillo.

virtual void oi::math::LinearAlgebra::substract ( OiMat result,
const OiMat m1,
const OiMat m2 
)
pure virtual

substract Substract m2 from m1

Parameters
result
m1
m2

Implemented in oi::math::LAArmadillo.

virtual bool oi::math::LinearAlgebra::svd ( OiMat u,
OiVec d,
OiMat v,
const OiMat x 
)
pure virtual

svd Compute singular value decomposition of x

Parameters
u
d
v
x
Returns

Implemented in oi::math::LAArmadillo.

virtual void oi::math::LinearAlgebra::transpose ( OiMat result,
const OiMat m 
)
pure virtual

transpose Transpose m

Parameters
result
m

Implemented in oi::math::LAArmadillo.


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