#include <Space.h>
|
| MultiSpace () |
|
| MultiSpace (Space *s1, Space *s2) |
|
virtual | ~MultiSpace () |
|
Space * | getSpace1 () const |
|
Space * | getSpace2 () const |
|
virtual MultiDataContainer * | buildDataContainer () const |
|
virtual long long | get_n123 () |
|
virtual void | zeroElement (dataContainer *x) const |
|
virtual void | linearCombo (float a, dataContainer *x, float b, dataContainer *y) const |
|
virtual double | innerProd (dataContainer *x, dataContainer *y) const |
|
virtual void | addInv (dataContainer *x) const |
|
virtual void | addInv (dataContainer *x, dataContainer *xNeg) const |
|
virtual void | scale (float a, dataContainer *x) const |
|
virtual void | scale (float a, dataContainer *x, dataContainer *ax) const |
|
virtual bool | isCompatible (Space *otherSpace, bool makeSame=false) const |
|
virtual bool | isCompatible (dataContainer *otherContainer) const |
|
virtual void | random (dataContainer *x) const |
|
| Space () |
|
virtual | ~Space () |
|
boost::shared_ptr< int > | get_key () const |
|
virtual void | set_key (const boost::shared_ptr< int > &k) |
|
virtual bool | operator== (const Space &otherSpace) const |
|
virtual void | print_it () |
|
Definition at line 86 of file Space.h.
SEP::MultiSpace::MultiSpace |
( |
) | |
|
|
inline |
SEP::MultiSpace::MultiSpace |
( |
Space * |
s1, |
|
|
Space * |
s2 |
|
) |
| |
virtual SEP::MultiSpace::~MultiSpace |
( |
) | |
|
|
inlinevirtual |
Overwrite x with additive inverse x = -1*x
Implements SEP::Space.
Definition at line 22 of file Space.cpp.
Write additive inverse of x, -1*x, into xNeg
Implements SEP::Space.
Definition at line 32 of file Space.cpp.
Build a data container that is compatible with the multispace by building a multi data container.
Reimplemented from SEP::Space.
Definition at line 110 of file Space.cpp.
long long SEP::MultiSpace::get_n123 |
( |
) | |
|
|
virtual |
Return the total dimension of the multi-space assuming no overlap (so n123 is sum of n123 for spaces making up multispace)
Implements SEP::Space.
Definition at line 126 of file Space.cpp.
Space* SEP::MultiSpace::getSpace1 |
( |
) | |
const |
|
inline |
Space* SEP::MultiSpace::getSpace2 |
( |
) | |
const |
|
inline |
Take the inner product (sum of element wise products) of two data containers compatible with the same space
Implements SEP::Space.
Definition at line 73 of file Space.cpp.
bool SEP::MultiSpace::isCompatible |
( |
SEP::Space * |
otherSpace, |
|
|
bool |
makeSame = false |
|
) |
| const |
|
virtual |
Check whether this space and otherSpace are compatible, either because they are the same space or by a deep check. By default, compatible spaces are not given the same key, but if makeSame = true, the key of otherSpace is set to the key of this space.
Implements SEP::Space.
Definition at line 47 of file Space.cpp.
Check if a data container, x, is compatible with this space.
Implements SEP::Space.
Definition at line 61 of file Space.cpp.
Zero out any vector in the MultiSpace by zeroing it out in the two spaces making up the multispace.
Implements SEP::Space.
Definition at line 95 of file Space.cpp.
Space* SEP::MultiSpace::sp1 |
Space * SEP::MultiSpace::sp2 |
The documentation for this class was generated from the following files: