#include <LOCA_MultiContinuation_ExtendedMultiVector.H>
Public Member Functions | |
ExtendedMultiVector (const Teuchos::RCP< LOCA::GlobalData > &global_data, const NOX::Abstract::Vector &xVec, int nColumns, int nScalarRows, NOX::CopyType type=NOX::DeepCopy) | |
Constructor. | |
ExtendedMultiVector (const Teuchos::RCP< LOCA::GlobalData > &global_data, const NOX::Abstract::MultiVector &xVec, int nScalarRows) | |
Constructor. | |
ExtendedMultiVector (const Teuchos::RCP< LOCA::GlobalData > &global_data, const NOX::Abstract::MultiVector &xVec, const NOX::Abstract::MultiVector::DenseMatrix ¶ms) | |
Constructor. | |
ExtendedMultiVector (const ExtendedMultiVector &source, NOX::CopyType type=NOX::DeepCopy) | |
Copy constructor. | |
ExtendedMultiVector (const ExtendedMultiVector &source, int nColumns) | |
Copy constructor that creates a new multivector with nColumns columns. | |
ExtendedMultiVector (const ExtendedMultiVector &source, const vector< int > &index, bool view) | |
Copy constructor that creates a sub copy or view of the given multivector. | |
virtual | ~ExtendedMultiVector () |
Destructor. | |
virtual ExtendedMultiVector & | operator= (const ExtendedMultiVector &y) |
Assignment operator. | |
virtual LOCA::Extended::MultiVector & | operator= (const LOCA::Extended::MultiVector &y) |
Assignment operator. | |
virtual NOX::Abstract::MultiVector & | operator= (const NOX::Abstract::MultiVector &y) |
Assignment operator. | |
virtual Teuchos::RCP < NOX::Abstract::MultiVector > | clone (NOX::CopyType type=NOX::DeepCopy) const |
Create a new multi-vector of the same underlying type by cloning "this", and return a pointer to the new vector. | |
virtual Teuchos::RCP < NOX::Abstract::MultiVector > | clone (int numvecs) const |
Creates a new multi-vector with numvecs columns. | |
virtual Teuchos::RCP < NOX::Abstract::MultiVector > | subCopy (const vector< int > &index) const |
Creates a new multi-vector with index.size() columns whose columns are copies of the columns of *this given by index . | |
virtual Teuchos::RCP < NOX::Abstract::MultiVector > | subView (const vector< int > &index) const |
Creates a new multi-vector with index.size() columns that shares the columns of *this given by index . | |
virtual Teuchos::RCP< const NOX::Abstract::MultiVector > | getXMultiVec () const |
Returns the solution vector component of extended multivector. | |
virtual Teuchos::RCP < NOX::Abstract::MultiVector > | getXMultiVec () |
Returns the solution vector component of extended multivector. | |
Protected Member Functions | |
ExtendedMultiVector (const Teuchos::RCP< LOCA::GlobalData > &global_data, int nColumns, int nScalarRows) | |
Constructor. | |
virtual Teuchos::RCP < LOCA::Extended::Vector > | generateVector (int nVecs, int nScalarRows) const |
Generate a derived extended vector. | |
Friends | |
class | ExtendedVector |
Declare LOCA::Continuation::ExtendedVector as a friend class. |
This class uses the LOCA::Extended::MultiVector implementation to store the solution and parameter components of the continuation vector and merely provides an interface for naming which components of the multivector these quantities correspond to.
Definition at line 68 of file LOCA_MultiContinuation_ExtendedMultiVector.H.
LOCA::MultiContinuation::ExtendedMultiVector::ExtendedMultiVector | ( | const Teuchos::RCP< LOCA::GlobalData > & | global_data, | |
const NOX::Abstract::Vector & | xVec, | |||
int | nColumns, | |||
int | nScalarRows, | |||
NOX::CopyType | type = NOX::DeepCopy | |||
) |
Constructor.
Generates a multivector with nColumns from xVec amd nScalarRows of zeros.
Definition at line 45 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
References NOX::Abstract::Vector::createMultiVector(), and LOCA::Extended::MultiVector::setMultiVectorPtr().
LOCA::MultiContinuation::ExtendedMultiVector::ExtendedMultiVector | ( | const Teuchos::RCP< LOCA::GlobalData > & | global_data, | |
const NOX::Abstract::MultiVector & | xVec, | |||
int | nScalarRows | |||
) |
Constructor.
Initializes the scalar matrix to nScalarRows rows and xVec.numVectors() columns of zeros
Definition at line 58 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
References NOX::Abstract::MultiVector::clone(), NOX::DeepCopy, and LOCA::Extended::MultiVector::setMultiVectorPtr().
LOCA::MultiContinuation::ExtendedMultiVector::ExtendedMultiVector | ( | const Teuchos::RCP< LOCA::GlobalData > & | global_data, | |
const NOX::Abstract::MultiVector & | xVec, | |||
const NOX::Abstract::MultiVector::DenseMatrix & | params | |||
) |
Constructor.
Sets the scalar matrix explicitly
Definition at line 67 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
References NOX::Abstract::MultiVector::clone(), NOX::DeepCopy, LOCA::Extended::MultiVector::getScalars(), and LOCA::Extended::MultiVector::setMultiVectorPtr().
LOCA::MultiContinuation::ExtendedMultiVector::ExtendedMultiVector | ( | const ExtendedMultiVector & | source, | |
NOX::CopyType | type = NOX::DeepCopy | |||
) |
LOCA::MultiContinuation::ExtendedMultiVector::ExtendedMultiVector | ( | const ExtendedMultiVector & | source, | |
int | nColumns | |||
) |
Copy constructor that creates a new multivector with nColumns columns.
Definition at line 85 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
LOCA::MultiContinuation::ExtendedMultiVector::ExtendedMultiVector | ( | const ExtendedMultiVector & | source, | |
const vector< int > & | index, | |||
bool | view | |||
) |
Copy constructor that creates a sub copy or view of the given multivector.
Definition at line 92 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
LOCA::MultiContinuation::ExtendedMultiVector::~ExtendedMultiVector | ( | ) | [virtual] |
LOCA::MultiContinuation::ExtendedMultiVector::ExtendedMultiVector | ( | const Teuchos::RCP< LOCA::GlobalData > & | global_data, | |
int | nColumns, | |||
int | nScalarRows | |||
) | [protected] |
Constructor.
Creates an empty multivector with nColumns columns and nScalarRows scalar rows
Definition at line 175 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
LOCA::MultiContinuation::ExtendedMultiVector & LOCA::MultiContinuation::ExtendedMultiVector::operator= | ( | const ExtendedMultiVector & | y | ) | [virtual] |
Assignment operator.
Definition at line 120 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
Referenced by operator=().
LOCA::Extended::MultiVector & LOCA::MultiContinuation::ExtendedMultiVector::operator= | ( | const LOCA::Extended::MultiVector & | y | ) | [virtual] |
Assignment operator.
Reimplemented from LOCA::Extended::MultiVector.
Definition at line 104 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
References operator=().
NOX::Abstract::MultiVector & LOCA::MultiContinuation::ExtendedMultiVector::operator= | ( | const NOX::Abstract::MultiVector & | y | ) | [virtual] |
Assignment operator.
Reimplemented from LOCA::Extended::MultiVector.
Definition at line 112 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
References operator=().
Teuchos::RCP< NOX::Abstract::MultiVector > LOCA::MultiContinuation::ExtendedMultiVector::clone | ( | NOX::CopyType | type = NOX::DeepCopy |
) | const [virtual] |
Create a new multi-vector of the same underlying type by cloning "this", and return a pointer to the new vector.
Reimplemented from LOCA::Extended::MultiVector.
Definition at line 128 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
Referenced by LOCA::MultiContinuation::ArcLengthConstraint::computeConstraints().
Teuchos::RCP< NOX::Abstract::MultiVector > LOCA::MultiContinuation::ExtendedMultiVector::clone | ( | int | numvecs | ) | const [virtual] |
Creates a new multi-vector with numvecs
columns.
Reimplemented from LOCA::Extended::MultiVector.
Definition at line 136 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
Teuchos::RCP< NOX::Abstract::MultiVector > LOCA::MultiContinuation::ExtendedMultiVector::subCopy | ( | const vector< int > & | index | ) | const [virtual] |
Creates a new multi-vector with index.size()
columns whose columns are copies of the columns of *this
given by index
.
Reimplemented from LOCA::Extended::MultiVector.
Definition at line 144 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
Teuchos::RCP< NOX::Abstract::MultiVector > LOCA::MultiContinuation::ExtendedMultiVector::subView | ( | const vector< int > & | index | ) | const [virtual] |
Creates a new multi-vector with index.size()
columns that shares the columns of *this
given by index
.
Reimplemented from LOCA::Extended::MultiVector.
Definition at line 154 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
Referenced by LOCA::Pitchfork::MinimallyAugmented::ExtendedGroup::setupViews(), LOCA::MultiContinuation::ConstrainedGroup::setupViews(), and LOCA::Hopf::MinimallyAugmented::ExtendedGroup::setupViews().
Teuchos::RCP< const NOX::Abstract::MultiVector > LOCA::MultiContinuation::ExtendedMultiVector::getXMultiVec | ( | ) | const [virtual] |
Returns the solution vector component of extended multivector.
Definition at line 164 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
References LOCA::Extended::MultiVector::getMultiVector().
Referenced by LOCA::Pitchfork::MinimallyAugmented::ExtendedGroup::applyJacobianInverseMultiVector(), LOCA::MultiContinuation::ConstrainedGroup::applyJacobianInverseMultiVector(), LOCA::Hopf::MinimallyAugmented::ExtendedGroup::applyJacobianInverseMultiVector(), LOCA::Homotopy::DeflatedGroup::applyJacobianInverseMultiVector(), LOCA::Pitchfork::MinimallyAugmented::ExtendedGroup::applyJacobianMultiVector(), LOCA::MultiContinuation::ConstrainedGroup::applyJacobianMultiVector(), LOCA::Hopf::MinimallyAugmented::ExtendedGroup::applyJacobianMultiVector(), LOCA::Homotopy::DeflatedGroup::applyJacobianMultiVector(), LOCA::MultiContinuation::ConstrainedGroup::applyJacobianTransposeInverseMultiVector(), LOCA::Pitchfork::MinimallyAugmented::ExtendedGroup::applyJacobianTransposeMultiVector(), LOCA::MultiContinuation::ConstrainedGroup::applyJacobianTransposeMultiVector(), LOCA::Hopf::MinimallyAugmented::ExtendedGroup::applyJacobianTransposeMultiVector(), LOCA::Homotopy::DeflatedGroup::applyJacobianTransposeMultiVector(), LOCA::Pitchfork::MinimallyAugmented::ExtendedGroup::computeDfDpMulti(), LOCA::MultiContinuation::ConstrainedGroup::computeDfDpMulti(), LOCA::Hopf::MinimallyAugmented::ExtendedGroup::computeDfDpMulti(), LOCA::Homotopy::DeflatedGroup::computeDfDpMulti(), LOCA::MultiContinuation::ConstrainedGroup::computeGradient(), LOCA::MultiContinuation::ConstrainedGroup::computeJacobian(), LOCA::Pitchfork::MinimallyAugmented::ExtendedGroup::extractParameterComponent(), LOCA::MultiContinuation::ConstrainedGroup::extractParameterComponent(), LOCA::Hopf::MinimallyAugmented::ExtendedGroup::extractParameterComponent(), LOCA::Homotopy::DeflatedGroup::extractParameterComponent(), LOCA::Pitchfork::MinimallyAugmented::ExtendedGroup::extractSolutionComponent(), LOCA::MultiContinuation::ConstrainedGroup::extractSolutionComponent(), LOCA::Hopf::MinimallyAugmented::ExtendedGroup::extractSolutionComponent(), LOCA::Homotopy::DeflatedGroup::extractSolutionComponent(), LOCA::MultiContinuation::ArcLengthConstraint::getDX(), LOCA::Pitchfork::MinimallyAugmented::ExtendedGroup::loadNestedComponents(), LOCA::MultiContinuation::ConstrainedGroup::loadNestedComponents(), LOCA::Hopf::MinimallyAugmented::ExtendedGroup::loadNestedComponents(), and LOCA::Homotopy::DeflatedGroup::loadNestedComponents().
Teuchos::RCP< NOX::Abstract::MultiVector > LOCA::MultiContinuation::ExtendedMultiVector::getXMultiVec | ( | ) | [virtual] |
Returns the solution vector component of extended multivector.
Definition at line 170 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
References LOCA::Extended::MultiVector::getMultiVector().
Teuchos::RCP< LOCA::Extended::Vector > LOCA::MultiContinuation::ExtendedMultiVector::generateVector | ( | int | nVecs, | |
int | nScalarRows | |||
) | const [protected, virtual] |
Generate a derived extended vector.
Returns a vector of type LOCA::MultiContinuation::ExtendedVector
Reimplemented from LOCA::Extended::MultiVector.
Definition at line 184 of file LOCA_MultiContinuation_ExtendedMultiVector.C.
References LOCA::Extended::MultiVector::globalData.
friend class ExtendedVector [friend] |
Declare LOCA::Continuation::ExtendedVector as a friend class.
So it can call protected methods.
Definition at line 74 of file LOCA_MultiContinuation_ExtendedMultiVector.H.