#include <ClpDummyMatrix.hpp>
Inheritance diagram for ClpDummyMatrix:
Public Member Functions | |
Useful methods | |
virtual CoinPackedMatrix * | getPackedMatrix () const |
Return a complete CoinPackedMatrix. | |
virtual bool | isColOrdered () const |
virtual CoinBigIndex | getNumElements () const |
virtual int | getNumCols () const |
virtual int | getNumRows () const |
virtual const double * | getElements () const |
virtual const int * | getIndices () const |
virtual const CoinBigIndex * | getVectorStarts () const |
virtual const int * | getVectorLengths () const |
virtual void | deleteCols (const int numDel, const int *indDel) |
virtual void | deleteRows (const int numDel, const int *indDel) |
virtual ClpMatrixBase * | reverseOrderedCopy () const |
virtual CoinBigIndex | numberInBasis (const int *columnIsBasic) const |
virtual CoinBigIndex | fillBasis (const ClpSimplex *model, const int *columnIsBasic, int &numberBasic, int *row, int *column, double *element) const |
Fills in basis (Returns number of elements and updates numberBasic). | |
virtual CoinBigIndex | fillBasis (const ClpSimplex *model, const int *whichColumn, int numberRowBasic, int numberColumnBasic, int *row, int *column, double *element) const |
virtual void | unpack (const ClpSimplex *model, CoinIndexedVector *rowArray, int column) const |
virtual void | unpackPacked (ClpSimplex *model, CoinIndexedVector *rowArray, int column) const |
virtual void | add (const ClpSimplex *model, CoinIndexedVector *rowArray, int column, double multiplier) const |
virtual void | releaseDummyMatrix () const |
Allow any parts of a created CoinMatrix to be deleted. | |
Matrix times vector methods | |
virtual void | times (double scalar, const double *x, double *y) const |
virtual void | times (double scalar, const double *x, double *y, const double *rowScale, const double *columnScale) const |
And for scaling. | |
virtual void | transposeTimes (double scalar, const double *x, double *y) const |
virtual void | transposeTimes (double scalar, const double *x, double *y, const double *rowScale, const double *columnScale) const |
And for scaling. | |
virtual void | transposeTimes (const ClpSimplex *model, double scalar, const CoinIndexedVector *x, CoinIndexedVector *y, CoinIndexedVector *z) const |
virtual void | subsetTransposeTimes (const ClpSimplex *model, const CoinIndexedVector *x, const CoinIndexedVector *y, CoinIndexedVector *z) const |
Constructors, destructor | |
ClpDummyMatrix () | |
ClpDummyMatrix (int numberColumns, int numberRows, int numberElements) | |
Constructor with data. | |
virtual | ~ClpDummyMatrix () |
Copy method | |
ClpDummyMatrix (const ClpDummyMatrix &) | |
ClpDummyMatrix (const CoinPackedMatrix &) | |
ClpDummyMatrix & | operator= (const ClpDummyMatrix &) |
virtual ClpMatrixBase * | clone () const |
Clone. | |
Protected Attributes | |
Data members | |
The data members are protected to allow access for derived classes. | |
int | numberRows_ |
Number of rows. | |
int | numberColumns_ |
Number of columns. | |
int | numberElements_ |
Number of elements. |
Definition at line 17 of file ClpDummyMatrix.hpp.
|
Default constructor. Definition at line 21 of file ClpDummyMatrix.cpp. References numberColumns_, numberElements_, numberRows_, and ClpMatrixBase::setType(). Referenced by clone().
00022 : ClpMatrixBase() 00023 { 00024 setType(14); 00025 numberRows_=0; 00026 numberColumns_=0; 00027 numberElements_=0; 00028 } |
|
Destructor Definition at line 61 of file ClpDummyMatrix.cpp.
00062 { 00063 } |
|
The copy constructor. Definition at line 43 of file ClpDummyMatrix.cpp. References numberColumns_, numberElements_, and numberRows_.
00044 : ClpMatrixBase(rhs) 00045 { 00046 numberRows_=rhs.numberRows_; 00047 numberColumns_=rhs.numberColumns_; 00048 numberElements_=rhs.numberElements_; 00049 } |
|
The copy constructor from an CoinDummyMatrix. Definition at line 51 of file ClpDummyMatrix.cpp.
00052 : ClpMatrixBase() 00053 { 00054 std::cerr<<"Constructor from CoinPackedMatrix nnot supported - ClpDummyMatrix"<<std::endl; 00055 abort(); 00056 } |
|
Adds multiple of a column into an CoinIndexedvector You can use quickAdd to add to vector Implements ClpMatrixBase. Definition at line 209 of file ClpDummyMatrix.cpp.
00211 {
00212 std::cerr<<"add not supported - ClpDummyMatrix"<<std::endl;
00213 abort();
00214 }
|
|
Delete the columns whose indices are listed in Implements ClpMatrixBase. Definition at line 252 of file ClpDummyMatrix.cpp.
00253 {
00254 std::cerr<<"deleteCols not supported - ClpDummyMatrix"<<std::endl;
00255 abort();
00256 }
|
|
Delete the rows whose indices are listed in Implements ClpMatrixBase. Definition at line 258 of file ClpDummyMatrix.cpp.
00259 {
00260 std::cerr<<"deleteRows not supported - ClpDummyMatrix"<<std::endl;
00261 abort();
00262 }
|
|
If element NULL returns number of elements in column part of basis, If not NULL fills in as well Implements ClpMatrixBase. Definition at line 174 of file ClpDummyMatrix.cpp.
00180 { 00181 std::cerr<<"fillBasis not supported - ClpDummyMatrix"<<std::endl; 00182 abort(); 00183 return 0; 00184 } |
|
A vector containing the elements in the packed matrix. Note that there might be gaps in this list, entries that do not belong to any major-dimension vector. To get the actual elements one should look at this vector together with vectorStarts and vectorLengths. Implements ClpMatrixBase. Definition at line 229 of file ClpDummyMatrix.cpp.
00230 { 00231 std::cerr<<"getElements not supported - ClpDummyMatrix"<<std::endl; 00232 abort(); 00233 return NULL; 00234 } |
|
A vector containing the minor indices of the elements in the packed matrix. Note that there might be gaps in this list, entries that do not belong to any major-dimension vector. To get the actual elements one should look at this vector together with vectorStarts and vectorLengths. Implements ClpMatrixBase. Definition at line 264 of file ClpDummyMatrix.cpp.
00265 { 00266 std::cerr<<"getIndices not supported - ClpDummyMatrix"<<std::endl; 00267 abort(); 00268 return NULL; 00269 } |
|
Number of columns. Implements ClpMatrixBase. Definition at line 30 of file ClpDummyMatrix.hpp. References numberColumns_.
00030 { return numberColumns_; } |
|
Number of entries in the packed matrix. Implements ClpMatrixBase. Definition at line 27 of file ClpDummyMatrix.hpp. References numberElements_.
00028 { return numberElements_; } |
|
Number of rows. Implements ClpMatrixBase. Definition at line 32 of file ClpDummyMatrix.hpp. References numberRows_.
00032 { return numberRows_; }; |
|
The lengths of the major-dimension vectors. Implements ClpMatrixBase. Definition at line 245 of file ClpDummyMatrix.cpp.
00246 { 00247 std::cerr<<"get VectorLengths not supported - ClpDummyMatrix"<<std::endl; 00248 abort(); 00249 return NULL; 00250 } |
|
Whether the packed matrix is column major ordered or not. Implements ClpMatrixBase. Definition at line 25 of file ClpDummyMatrix.hpp.
00025 { return true; } |
|
Returns number of elements in basis column is basic if entry >=0 Implements ClpMatrixBase. Definition at line 154 of file ClpDummyMatrix.cpp.
00155 { 00156 std::cerr<<"numberInBasis not supported - ClpDummyMatrix"<<std::endl; 00157 abort(); 00158 return 0; 00159 } |
|
Returns a new matrix in reverse order without gaps Reimplemented from ClpMatrixBase. Definition at line 89 of file ClpDummyMatrix.cpp.
00090 { 00091 std::cerr<<"reverseOrderedCopy not supported - ClpDummyMatrix"<<std::endl; 00092 abort(); 00093 return NULL; 00094 } |
|
Return Implements ClpMatrixBase. Definition at line 143 of file ClpDummyMatrix.cpp.
00147 {
00148 std::cerr<<"subsetTransposeTimes not supported - ClpDummyMatrix"<<std::endl;
00149 abort();
00150 }
|
|
Return
Implements ClpMatrixBase. Definition at line 97 of file ClpDummyMatrix.cpp.
00099 {
00100 std::cerr<<"times not supported - ClpDummyMatrix"<<std::endl;
00101 abort();
00102 }
|
|
Return Implements ClpMatrixBase. Definition at line 131 of file ClpDummyMatrix.cpp.
00135 {
00136 std::cerr<<"transposeTimes not supported - ClpDummyMatrix"<<std::endl;
00137 abort();
00138 }
|
|
Return
Implements ClpMatrixBase. Definition at line 104 of file ClpDummyMatrix.cpp.
00106 {
00107 std::cerr<<"transposeTimes not supported - ClpDummyMatrix"<<std::endl;
00108 abort();
00109 }
|
|
Unpacks a column into an CoinIndexedvector Implements ClpMatrixBase. Definition at line 188 of file ClpDummyMatrix.cpp.
00190 {
00191 std::cerr<<"unpack not supported - ClpDummyMatrix"<<std::endl;
00192 abort();
00193 }
|
|
Unpacks a column into an CoinIndexedvector in packed foramt Note that model is NOT const. Bounds and objective could be modified if doing column generation (just for this variable) Implements ClpMatrixBase. Definition at line 199 of file ClpDummyMatrix.cpp.
00202 {
00203 std::cerr<<"unpackPacked not supported - ClpDummyMatrix"<<std::endl;
00204 abort();
00205 }
|