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 #ifndef LOCA_HOPF_COMPLEXMULTIVECTOR_H
00043 #define LOCA_HOPF_COMPLEXMULTIVECTOR_H
00044
00045 #include "LOCA_Extended_MultiVector.H"
00046
00047
00048 namespace LOCA {
00049 namespace Hopf {
00050 class ComplexVector;
00051 }
00052 }
00053
00054 namespace LOCA {
00055
00056 namespace Hopf {
00057
00068 class ComplexMultiVector : public LOCA::Extended::MultiVector {
00069
00074 friend class ComplexVector;
00075
00076 public:
00077
00079
00082 ComplexMultiVector(
00083 const Teuchos::RCP<LOCA::GlobalData>& global_data,
00084 const NOX::Abstract::Vector& cloneVec,
00085 int nColumns);
00086
00088 ComplexMultiVector(
00089 const Teuchos::RCP<LOCA::GlobalData>& global_data,
00090 const NOX::Abstract::MultiVector& realVec,
00091 const NOX::Abstract::MultiVector& imagVec);
00092
00094 ComplexMultiVector(const ComplexMultiVector& source,
00095 NOX::CopyType type = NOX::DeepCopy);
00096
00101 ComplexMultiVector(const ComplexMultiVector& source, int nColumns);
00102
00107 ComplexMultiVector(const ComplexMultiVector& source,
00108 const vector<int>& index, bool view);
00109
00111 virtual ~ComplexMultiVector();
00112
00114 virtual ComplexMultiVector&
00115 operator=(const ComplexMultiVector& y);
00116
00118 virtual LOCA::Extended::MultiVector&
00119 operator=(const LOCA::Extended::MultiVector& y);
00120
00122 virtual NOX::Abstract::MultiVector&
00123 operator=(const NOX::Abstract::MultiVector& y);
00124
00129 virtual Teuchos::RCP<NOX::Abstract::MultiVector>
00130 clone(NOX::CopyType type = NOX::DeepCopy) const;
00131
00133 virtual Teuchos::RCP<NOX::Abstract::MultiVector>
00134 clone(int numvecs) const;
00135
00141 virtual Teuchos::RCP<NOX::Abstract::MultiVector>
00142 subCopy(const vector<int>& index) const;
00143
00148 virtual Teuchos::RCP<NOX::Abstract::MultiVector>
00149 subView(const vector<int>& index) const;
00150
00152 virtual Teuchos::RCP<const NOX::Abstract::MultiVector>
00153 getRealMultiVec() const;
00154
00156 virtual Teuchos::RCP<NOX::Abstract::MultiVector>
00157 getRealMultiVec();
00158
00160 virtual Teuchos::RCP<const NOX::Abstract::MultiVector>
00161 getImagMultiVec() const;
00162
00164 virtual Teuchos::RCP<NOX::Abstract::MultiVector>
00165 getImagMultiVec();
00166
00168 virtual
00169 Teuchos::RCP<LOCA::Hopf::ComplexVector>
00170 getColumn(int i);
00171
00173 virtual
00174 Teuchos::RCP<const LOCA::Hopf::ComplexVector>
00175 getColumn(int i) const;
00176
00177 protected:
00178
00180
00183 ComplexMultiVector(
00184 const Teuchos::RCP<LOCA::GlobalData>& global_data,
00185 int nColumns);
00186
00188
00192 virtual Teuchos::RCP<LOCA::Extended::Vector>
00193 generateVector(int nVecs, int nScalarRows) const;
00194
00195 };
00196 }
00197 }
00198
00199 #endif