Public Member Functions | |
| VectorSpace () | |
| VectorSpace (Handleable< const VectorSpaceBase< Scalar > > *rawPtr) | |
| VectorSpace (const RefCountPtr< const VectorSpaceBase< Scalar > > &smartPtr) | |
| Vector< Scalar > | createMember () const |
| int | dim () const |
| int | baseGlobalNaturalIndex () const |
| int | numLocalElements () const |
| const MPIComm & | comm () const |
| bool | isCompatible (const VectorSpace< Scalar > &vecSpc) const |
| bool | operator== (const VectorSpace< Scalar > &other) const |
| bool | operator!= (const VectorSpace< Scalar > &other) const |
| bool | contains (const Vector< Scalar > &vec) const |
| int | numBlocks () const |
| bool | isBlockSpace () const |
| const VectorSpace< Scalar > & | getBlock (int i) const |
| const VectorSpace< Scalar > & | getBlock (const BlockIterator< Scalar > &iter) const |
| const VectorSpace< Scalar > & | getBlock (const std::deque< int > &iter) const |
| BlockIterator< Scalar > | beginBlock () const |
| BlockIterator< Scalar > | endBlock () const |
| int | mapToGNI (const BlockIterator< Scalar > &b, int indexWithinBlock) const |
| bool | containsGNI (int gni) const |
| void | getBlockAndOffsetFromGNI (int gni, BlockIterator< Scalar > &block, int &indexWithinBlock) const |
Related Functions | |
(Note that these are not member functions.) | |
| template<class Scalar > | |
| VectorSpace< Scalar > | blockSpace (const VectorSpace< Scalar > &v1) |
| template<class Scalar > | |
| VectorSpace< Scalar > | blockSpace (const VectorSpace< Scalar > &v1, const VectorSpace< Scalar > &v2) |
| template<class Scalar > | |
| VectorSpace< Scalar > | blockSpace (const VectorSpace< Scalar > &v1, const VectorSpace< Scalar > &v2, const VectorSpace< Scalar > &v3) |
| template<class Scalar > | |
| VectorSpace< Scalar > | blockSpace (const VectorSpace< Scalar > &v1, const VectorSpace< Scalar > &v2, const VectorSpace< Scalar > &v3, const VectorSpace< Scalar > &v4) |
| template<class Scalar > | |
| VectorSpace< Scalar > | blockSpace (const Array< VectorSpace< Scalar > > &x) |
| template<class Scalar > | |
| VectorSpace< Scalar > | blockSpace (const VectorSpace< Scalar > &v1) |
| template<class Scalar > | |
| VectorSpace< Scalar > | blockSpace (const VectorSpace< Scalar > &v1, const VectorSpace< Scalar > &v2) |
| template<class Scalar > | |
| VectorSpace< Scalar > | blockSpace (const VectorSpace< Scalar > &v1, const VectorSpace< Scalar > &v2, const VectorSpace< Scalar > &v3) |
| template<class Scalar > | |
| VectorSpace< Scalar > | blockSpace (const VectorSpace< Scalar > &v1, const VectorSpace< Scalar > &v2, const VectorSpace< Scalar > &v3, const VectorSpace< Scalar > &v4) |
| template<class Scalar > | |
| VectorSpace< Scalar > | blockSpace (const Array< VectorSpace< Scalar > > &x) |
User-level VectorSpace class.
Definition at line 58 of file PlayaVectorSpaceDecl.hpp.
| Playa::VectorSpace< Scalar >::VectorSpace | ( | ) | [inline] |
Empty ctor
Definition at line 61 of file PlayaVectorSpaceDecl.hpp.
| Playa::VectorSpace< Scalar >::VectorSpace | ( | Handleable< const VectorSpaceBase< Scalar > > * | rawPtr | ) | [inline] |
Construct a VectorSpace<Scalar> with a raw pointer to a const VectorSpaceBase<Scalar>
Definition at line 61 of file PlayaVectorSpaceDecl.hpp.
| Playa::VectorSpace< Scalar >::VectorSpace | ( | const RefCountPtr< const VectorSpaceBase< Scalar > > & | smartPtr | ) | [inline] |
Construct a VectorSpace<Scalar> with a smart pointer to a const VectorSpaceBase<Scalar>
Definition at line 61 of file PlayaVectorSpaceDecl.hpp.
| int Playa::VectorSpace< Scalar >::baseGlobalNaturalIndex | ( | ) | const [inline] |
Return the lowest global index accessible on this processor
Definition at line 100 of file PlayaVectorSpaceImpl.hpp.
Referenced by Playa::PoissonBoltzmannOp::computeJacobianAndFunction(), Playa::PoissonBoltzmannOp::exactSoln(), Playa::ObjectiveBase::fdCheck(), Sundance::FunctionalEvaluator::fdGradientCheck(), Playa::makeEpetraDiagonalMatrix(), and Playa::PoissonBoltzmannOp::PoissonBoltzmannOp().
| BlockIterator< Scalar > Playa::VectorSpace< Scalar >::beginBlock | ( | ) | const [inline] |
Definition at line 206 of file PlayaVectorSpaceImpl.hpp.
| const MPIComm& Playa::VectorSpace< Scalar >::comm | ( | ) | const [inline] |
Return the MPI communicator
Definition at line 76 of file PlayaVectorSpaceDecl.hpp.
| bool Playa::VectorSpace< Scalar >::contains | ( | const Vector< Scalar > & | vec | ) | const [inline] |
test whether the space contains a given vector
Definition at line 130 of file PlayaVectorSpaceImpl.hpp.
References Playa::Vector< Scalar >::space().
| bool Playa::VectorSpace< Scalar >::containsGNI | ( | int | gni | ) | const [inline] |
Definition at line 235 of file PlayaVectorSpaceImpl.hpp.
| Vector< Scalar > Playa::VectorSpace< Scalar >::createMember | ( | ) | const [inline] |
Create a new element of this vector space
Definition at line 89 of file PlayaVectorSpaceImpl.hpp.
References Playa::Vector< Scalar >::setToConstant().
Referenced by Sundance::NLOp::computeFunctionValue(), Playa::PoissonBoltzmannOp::computeJacobianAndFunction(), Sundance::Assembler::configureVector(), Sundance::Assembler::configureVectorBlock(), Sundance::DiscreteSpace::createVector(), Playa::denseSVD(), Playa::PoissonBoltzmannOp::exactSoln(), Playa::getEpetraDiagonal(), Playa::PoissonBoltzmannOp::getInitialGuess(), Sundance::LinearEigenproblem::lumpedOperator(), Playa::InitTraits< SimpleMV, LinearOperator< double > >::makeMV(), Playa::LinearCombinationTester< Scalar >::nonModifyingOpTests(), Playa::LineSearchBasedOptBase::run(), Playa::LinearCombinationTester< Scalar >::selfModifyingOpTests(), and Playa::AnasaziEigensolver< Scalar >::solve().
| int Playa::VectorSpace< Scalar >::dim | ( | ) | const [inline] |
Return the dimension of the space
Definition at line 67 of file PlayaVectorSpaceDecl.hpp.
Referenced by Playa::PoissonBoltzmannOp::computeJacobianAndFunction(), Playa::ObjectiveBase::fdCheck(), Sundance::FunctionalEvaluator::fdGradientCheck(), Playa::HeatOperator1D::HeatOperator1D(), Playa::MatrixLaplacian1D::init(), Playa::MassMatrix1D::init(), and Playa::PCGSolver::solveUnprec().
| BlockIterator< Scalar > Playa::VectorSpace< Scalar >::endBlock | ( | ) | const [inline] |
Definition at line 212 of file PlayaVectorSpaceImpl.hpp.
| const VectorSpace< Scalar > & Playa::VectorSpace< Scalar >::getBlock | ( | int | i | ) | const [inline] |
get the i-th subblock
Definition at line 155 of file PlayaVectorSpaceImpl.hpp.
References Playa::BlockVectorSpaceBase< Scalar >::getBlock().
Referenced by Playa::DefaultBlockVector< Scalar >::DefaultBlockVector(), Playa::BlockIterator< Scalar >::goToStart(), and Playa::SimpleBlockOp< Scalar >::SimpleBlockOp().
| const VectorSpace< Scalar > & Playa::VectorSpace< Scalar >::getBlock | ( | const BlockIterator< Scalar > & | iter | ) | const [inline] |
get a subblock as specified by a block iterator
Definition at line 172 of file PlayaVectorSpaceImpl.hpp.
References Playa::BlockIterator< Scalar >::atEnd(), and Playa::BlockIterator< Scalar >::blockIndex().
| const VectorSpace< Scalar > & Playa::VectorSpace< Scalar >::getBlock | ( | const std::deque< int > & | iter | ) | const [inline] |
get a subblock as specified by a deque of indices
Definition at line 185 of file PlayaVectorSpaceImpl.hpp.
| void Playa::VectorSpace< Scalar >::getBlockAndOffsetFromGNI | ( | int | gni, |
| BlockIterator< Scalar > & | block, | ||
| int & | indexWithinBlock | ||
| ) | const [inline] |
Definition at line 242 of file PlayaVectorSpaceImpl.hpp.
| bool Playa::VectorSpace< Scalar >::isBlockSpace | ( | ) | const |
indicate whether I am a block vector space
Definition at line 146 of file PlayaVectorSpaceImpl.hpp.
Referenced by Playa::BlockIterator< Scalar >::goToStart().
| bool Playa::VectorSpace< Scalar >::isCompatible | ( | const VectorSpace< Scalar > & | vecSpc | ) | const [inline] |
Check compatibility with another space.
Definition at line 117 of file PlayaVectorSpaceImpl.hpp.
References Playa::Handle< const VectorSpaceBase< Scalar > >::ptr().
| int Playa::VectorSpace< Scalar >::mapToGNI | ( | const BlockIterator< Scalar > & | b, |
| int | indexWithinBlock | ||
| ) | const [inline] |
Definition at line 219 of file PlayaVectorSpaceImpl.hpp.
| int Playa::VectorSpace< Scalar >::numBlocks | ( | ) | const |
return the number of subblocks at the highest level.
Definition at line 138 of file PlayaVectorSpaceImpl.hpp.
Referenced by Playa::DefaultBlockVector< Scalar >::DefaultBlockVector(), and Playa::SimpleBlockOp< Scalar >::SimpleBlockOp().
| int Playa::VectorSpace< Scalar >::numLocalElements | ( | ) | const [inline] |
Return the number of elements owned by this processor
Definition at line 107 of file PlayaVectorSpaceImpl.hpp.
Referenced by Playa::PoissonBoltzmannOp::computeJacobianAndFunction(), Playa::PoissonBoltzmannOp::exactSoln(), Playa::ObjectiveBase::fdCheck(), Sundance::FunctionalEvaluator::fdGradientCheck(), Playa::makeEpetraDiagonalMatrix(), and Playa::PoissonBoltzmannOp::PoissonBoltzmannOp().
| bool Playa::VectorSpace< Scalar >::operator!= | ( | const VectorSpace< Scalar > & | other | ) | const [inline] |
test inequality of two spaces
Definition at line 80 of file PlayaVectorSpaceImpl.hpp.
| bool Playa::VectorSpace< Scalar >::operator== | ( | const VectorSpace< Scalar > & | other | ) | const [inline] |
test equality between two spaces
Definition at line 72 of file PlayaVectorSpaceImpl.hpp.
| VectorSpace< Scalar > blockSpace | ( | const VectorSpace< Scalar > & | v1 | ) | [related] |
| VectorSpace< Scalar > blockSpace | ( | const VectorSpace< Scalar > & | v1, |
| const VectorSpace< Scalar > & | v2 | ||
| ) | [related] |
| VectorSpace< Scalar > blockSpace | ( | const VectorSpace< Scalar > & | v1 | ) | [related] |
Definition at line 101 of file PlayaDefaultBlockVectorSpaceImpl.hpp.
| VectorSpace< Scalar > blockSpace | ( | const VectorSpace< Scalar > & | v1, |
| const VectorSpace< Scalar > & | v2, | ||
| const VectorSpace< Scalar > & | v3 | ||
| ) | [related] |
| VectorSpace< Scalar > blockSpace | ( | const VectorSpace< Scalar > & | v1, |
| const VectorSpace< Scalar > & | v2, | ||
| const VectorSpace< Scalar > & | v3, | ||
| const VectorSpace< Scalar > & | v4 | ||
| ) | [related] |
| VectorSpace< Scalar > blockSpace | ( | const VectorSpace< Scalar > & | v1, |
| const VectorSpace< Scalar > & | v2 | ||
| ) | [related] |
Definition at line 112 of file PlayaDefaultBlockVectorSpaceImpl.hpp.
| VectorSpace< Scalar > blockSpace | ( | const Array< VectorSpace< Scalar > > & | x | ) | [related] |
| VectorSpace< Scalar > blockSpace | ( | const VectorSpace< Scalar > & | v1, |
| const VectorSpace< Scalar > & | v2, | ||
| const VectorSpace< Scalar > & | v3 | ||
| ) | [related] |
Definition at line 124 of file PlayaDefaultBlockVectorSpaceImpl.hpp.
| VectorSpace< Scalar > blockSpace | ( | const VectorSpace< Scalar > & | v1, |
| const VectorSpace< Scalar > & | v2, | ||
| const VectorSpace< Scalar > & | v3, | ||
| const VectorSpace< Scalar > & | v4 | ||
| ) | [related] |
Definition at line 138 of file PlayaDefaultBlockVectorSpaceImpl.hpp.
| VectorSpace< Scalar > blockSpace | ( | const Array< VectorSpace< Scalar > > & | x | ) | [related] |
Definition at line 154 of file PlayaDefaultBlockVectorSpaceImpl.hpp.