AIToolbox
A library that offers tools for AI problem solving.
FactoredMatrix.hpp File Reference

Go to the source code of this file.

Classes

struct  AIToolbox::Factored::BasisFunction
 This struct represents a basis function. More...
 
struct  AIToolbox::Factored::FactoredVector
 This class represents a factored vector. More...
 
struct  AIToolbox::Factored::BasisMatrix
 This struct represents a basis matrix. More...
 
struct  AIToolbox::Factored::FactoredMatrix2D
 This class represents a factored 2D matrix. More...
 

Namespaces

 AIToolbox
 
 AIToolbox::Factored
 

Functions

Factored Matrix Types

Here we define some factored matrix types. These types allow to specify matrices in a factored form, i.e. where a matrix can be seen as a sum or product of smaller matrices, defined on subsets of the state-space.

BasisFunction AIToolbox::Factored::dot (const Factors &space, const BasisFunction &lhs, const BasisFunction &rhs)
 
BasisFunction AIToolbox::Factored::plus (const Factors &space, const BasisFunction &lhs, const BasisFunction &rhs)
 
BasisFunction AIToolbox::Factored::minus (const Factors &space, const BasisFunction &lhs, const BasisFunction &rhs)
 
BasisFunction AIToolbox::Factored::plusSubset (const Factors &space, BasisFunction retval, const BasisFunction &rhs)
 
BasisFunction AIToolbox::Factored::minusSubset (const Factors &space, BasisFunction retval, const BasisFunction &rhs)
 
BasisFunction & AIToolbox::Factored::plusEqualSubset (const Factors &space, BasisFunction &retval, const BasisFunction &rhs)
 
BasisFunction & AIToolbox::Factored::minusEqualSubset (const Factors &space, BasisFunction &retval, const BasisFunction &rhs)
 
FactoredVector AIToolbox::Factored::plus (const Factors &space, FactoredVector retval, const BasisFunction &rhs)
 
FactoredVector & AIToolbox::Factored::plusEqual (const Factors &space, FactoredVector &retval, const BasisFunction &basis)
 
FactoredVector & AIToolbox::Factored::plusEqual (const Factors &space, FactoredVector &retval, BasisFunction &&basis)
 
FactoredVector AIToolbox::Factored::minus (const Factors &space, FactoredVector retval, const BasisFunction &rhs, bool clearZero=false)
 
FactoredVector & AIToolbox::Factored::minusEqual (const Factors &space, FactoredVector &retval, const BasisFunction &basis, bool clearZero=false)
 
FactoredVector AIToolbox::Factored::plus (const Factors &space, FactoredVector retval, const FactoredVector &rhs)
 
FactoredVector & AIToolbox::Factored::plusEqual (const Factors &space, FactoredVector &retval, const FactoredVector &rhs)
 
FactoredVector & AIToolbox::Factored::plusEqual (const Factors &space, FactoredVector &retval, FactoredVector &&rhs)
 
FactoredVector AIToolbox::Factored::minus (const Factors &space, FactoredVector retval, const FactoredVector &rhs, bool clearZero=false)
 
FactoredVector & AIToolbox::Factored::minusEqual (const Factors &space, FactoredVector &retval, const FactoredVector &rhs, bool clearZero=false)
 
BasisMatrix AIToolbox::Factored::plus (const Factors &space, const Factors &actions, const BasisMatrix &lhs, const BasisMatrix &rhs)
 
BasisMatrix AIToolbox::Factored::plusSubset (const Factors &space, const Factors &actions, BasisMatrix retval, const BasisMatrix &rhs)
 
BasisMatrix & AIToolbox::Factored::plusEqualSubset (const Factors &space, const Factors &actions, BasisMatrix &retval, const BasisMatrix &rhs)
 
FactoredMatrix2D & AIToolbox::Factored::plusEqual (const Factors &space, const Factors &actions, FactoredMatrix2D &retval, const BasisMatrix &basis)
 
FactoredMatrix2D & AIToolbox::Factored::plusEqual (const Factors &space, const Factors &actions, FactoredMatrix2D &retval, BasisMatrix &&basis)
 
FactoredMatrix2D & AIToolbox::Factored::plusEqual (const Factors &space, const Factors &actions, FactoredMatrix2D &retval, const FactoredMatrix2D &rhs)
 
FactoredMatrix2D & AIToolbox::Factored::plusEqual (const Factors &space, const Factors &actions, FactoredMatrix2D &retval, FactoredMatrix2D &&rhs)
 
FactoredVector AIToolbox::Factored::operator* (FactoredVector lhs, const Vector &w)
 
FactoredVector AIToolbox::Factored::operator* (const Vector &w, FactoredVector rhs)
 
FactoredVector AIToolbox::Factored::operator* (FactoredVector lhs, const double v)
 
FactoredVector AIToolbox::Factored::operator* (const double v, FactoredVector rhs)
 
FactoredMatrix2D AIToolbox::Factored::operator* (FactoredMatrix2D lhs, const Vector &w)
 
FactoredMatrix2D AIToolbox::Factored::operator* (const Vector &w, FactoredMatrix2D rhs)
 
FactoredMatrix2D AIToolbox::Factored::operator* (FactoredMatrix2D lhs, const double v)
 
FactoredMatrix2D AIToolbox::Factored::operator* (const double v, FactoredMatrix2D rhs)
 
Factored Matrix Types

Here we define some factored matrix types. These types allow to specify matrices in a factored form, i.e. where a matrix can be seen as a sum or product of smaller matrices, defined on subsets of the state-space.

BasisFunction AIToolbox::Factored::dot (const Factors &space, const BasisFunction &lhs, const BasisFunction &rhs)
 
BasisFunction AIToolbox::Factored::plus (const Factors &space, const BasisFunction &lhs, const BasisFunction &rhs)
 
BasisFunction AIToolbox::Factored::minus (const Factors &space, const BasisFunction &lhs, const BasisFunction &rhs)
 
BasisFunction AIToolbox::Factored::plusSubset (const Factors &space, BasisFunction retval, const BasisFunction &rhs)
 
BasisFunction AIToolbox::Factored::minusSubset (const Factors &space, BasisFunction retval, const BasisFunction &rhs)
 
BasisFunction & AIToolbox::Factored::plusEqualSubset (const Factors &space, BasisFunction &retval, const BasisFunction &rhs)
 
BasisFunction & AIToolbox::Factored::minusEqualSubset (const Factors &space, BasisFunction &retval, const BasisFunction &rhs)
 
FactoredVector AIToolbox::Factored::plus (const Factors &space, FactoredVector retval, const BasisFunction &rhs)
 
FactoredVector & AIToolbox::Factored::plusEqual (const Factors &space, FactoredVector &retval, const BasisFunction &basis)
 
FactoredVector & AIToolbox::Factored::plusEqual (const Factors &space, FactoredVector &retval, BasisFunction &&basis)
 
FactoredVector AIToolbox::Factored::minus (const Factors &space, FactoredVector retval, const BasisFunction &rhs, bool clearZero=false)
 
FactoredVector & AIToolbox::Factored::minusEqual (const Factors &space, FactoredVector &retval, const BasisFunction &basis, bool clearZero=false)
 
FactoredVector AIToolbox::Factored::plus (const Factors &space, FactoredVector retval, const FactoredVector &rhs)
 
FactoredVector & AIToolbox::Factored::plusEqual (const Factors &space, FactoredVector &retval, const FactoredVector &rhs)
 
FactoredVector & AIToolbox::Factored::plusEqual (const Factors &space, FactoredVector &retval, FactoredVector &&rhs)
 
FactoredVector AIToolbox::Factored::minus (const Factors &space, FactoredVector retval, const FactoredVector &rhs, bool clearZero=false)
 
FactoredVector & AIToolbox::Factored::minusEqual (const Factors &space, FactoredVector &retval, const FactoredVector &rhs, bool clearZero=false)
 
BasisMatrix AIToolbox::Factored::plus (const Factors &space, const Factors &actions, const BasisMatrix &lhs, const BasisMatrix &rhs)
 
BasisMatrix AIToolbox::Factored::plusSubset (const Factors &space, const Factors &actions, BasisMatrix retval, const BasisMatrix &rhs)
 
BasisMatrix & AIToolbox::Factored::plusEqualSubset (const Factors &space, const Factors &actions, BasisMatrix &retval, const BasisMatrix &rhs)
 
FactoredMatrix2D & AIToolbox::Factored::plusEqual (const Factors &space, const Factors &actions, FactoredMatrix2D &retval, const BasisMatrix &basis)
 
FactoredMatrix2D & AIToolbox::Factored::plusEqual (const Factors &space, const Factors &actions, FactoredMatrix2D &retval, BasisMatrix &&basis)
 
FactoredMatrix2D & AIToolbox::Factored::plusEqual (const Factors &space, const Factors &actions, FactoredMatrix2D &retval, const FactoredMatrix2D &rhs)
 
FactoredMatrix2D & AIToolbox::Factored::plusEqual (const Factors &space, const Factors &actions, FactoredMatrix2D &retval, FactoredMatrix2D &&rhs)
 
FactoredVector AIToolbox::Factored::operator* (FactoredVector lhs, const Vector &w)
 
FactoredVector AIToolbox::Factored::operator* (const Vector &w, FactoredVector rhs)
 
FactoredVector AIToolbox::Factored::operator* (FactoredVector lhs, const double v)
 
FactoredVector AIToolbox::Factored::operator* (const double v, FactoredVector rhs)
 
FactoredMatrix2D AIToolbox::Factored::operator* (FactoredMatrix2D lhs, const Vector &w)
 
FactoredMatrix2D AIToolbox::Factored::operator* (const Vector &w, FactoredMatrix2D rhs)
 
FactoredMatrix2D AIToolbox::Factored::operator* (FactoredMatrix2D lhs, const double v)
 
FactoredMatrix2D AIToolbox::Factored::operator* (const double v, FactoredMatrix2D rhs)