00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #include "LOCA_Hopf_ComplexVector.H"
00043 #include "LOCA_Hopf_ComplexMultiVector.H"
00044
00045 LOCA::Hopf::ComplexVector::ComplexVector(
00046 const Teuchos::RCP<LOCA::GlobalData>& global_data,
00047 const NOX::Abstract::Vector& realVec,
00048 const NOX::Abstract::Vector& imagVec) :
00049 LOCA::Extended::Vector(global_data,2,0)
00050 {
00051 setVector(0, realVec);
00052 setVector(1, imagVec);
00053 }
00054
00055 LOCA::Hopf::ComplexVector::ComplexVector(
00056 const LOCA::Hopf::ComplexVector& source,
00057 NOX::CopyType type) :
00058 LOCA::Extended::Vector(source, type)
00059 {
00060 }
00061
00062
00063 LOCA::Hopf::ComplexVector::~ComplexVector()
00064 {
00065 }
00066
00067 NOX::Abstract::Vector&
00068 LOCA::Hopf::ComplexVector::operator=(const NOX::Abstract::Vector& y)
00069 {
00070 return operator=(dynamic_cast<const LOCA::Hopf::ComplexVector&>(y));
00071 }
00072
00073 LOCA::Extended::Vector&
00074 LOCA::Hopf::ComplexVector::operator=(const LOCA::Extended::Vector& y)
00075 {
00076 return operator=(dynamic_cast<const LOCA::Hopf::ComplexVector&>(y));
00077 }
00078
00079 LOCA::Hopf::ComplexVector&
00080 LOCA::Hopf::ComplexVector::operator=(const LOCA::Hopf::ComplexVector& y)
00081 {
00082 LOCA::Extended::Vector::operator=(y);
00083 return *this;
00084 }
00085
00086 Teuchos::RCP<NOX::Abstract::Vector>
00087 LOCA::Hopf::ComplexVector::clone(NOX::CopyType type) const
00088 {
00089 return
00090 Teuchos::rcp(new LOCA::Hopf::ComplexVector(*this, type));
00091 }
00092
00093 void
00094 LOCA::Hopf::ComplexVector::setVec(const NOX::Abstract::Vector& realVec,
00095 const NOX::Abstract::Vector& imagVec)
00096 {
00097 setVector(0, realVec);
00098 setVector(1, imagVec);
00099 }
00100
00101 Teuchos::RCP<const NOX::Abstract::Vector>
00102 LOCA::Hopf::ComplexVector::getRealVec() const
00103 {
00104 return getVector(0);
00105 }
00106
00107 Teuchos::RCP<const NOX::Abstract::Vector>
00108 LOCA::Hopf::ComplexVector::getImagVec() const
00109 {
00110 return getVector(1);
00111 }
00112
00113 Teuchos::RCP<NOX::Abstract::Vector>
00114 LOCA::Hopf::ComplexVector::getRealVec()
00115 {
00116 return getVector(0);
00117 }
00118
00119 Teuchos::RCP<NOX::Abstract::Vector>
00120 LOCA::Hopf::ComplexVector::getImagVec()
00121 {
00122 return getVector(1);
00123 }
00124
00125 LOCA::Hopf::ComplexVector::ComplexVector(
00126 const Teuchos::RCP<LOCA::GlobalData>& global_data) :
00127 LOCA::Extended::Vector(global_data,2,0)
00128 {
00129 }
00130
00131 Teuchos::RCP<LOCA::Extended::MultiVector>
00132 LOCA::Hopf::ComplexVector::generateMultiVector(int nColumns,
00133 int nVectorRows,
00134 int nScalarRows) const
00135 {
00136 return
00137 Teuchos::rcp(new LOCA::Hopf::ComplexMultiVector(globalData, nColumns));
00138 }