Go to the documentation of this file.
6 #ifndef CoinPackedMatrix_H
7 #define CoinPackedMatrix_H
165 #ifndef COIN_FAST_CODE
167 throw CoinError(
"bad index",
"vectorFirst",
"CoinPackedMatrix");
174 #ifndef COIN_FAST_CODE
176 throw CoinError(
"bad index",
"vectorLast",
"CoinPackedMatrix");
182 #ifndef COIN_FAST_CODE
184 throw CoinError(
"bad index",
"vectorSize",
"CoinPackedMatrix");
188 #ifndef CLP_NO_VECTOR
191 #ifndef COIN_FAST_CODE
193 throw CoinError(
"bad index",
"vector",
"CoinPackedMatrix");
231 #ifndef CLP_NO_VECTOR
247 const int *vecind,
const double *vecelem);
248 #ifndef CLP_NO_VECTOR
265 const double * element,
int numberRows=-1);
266 #ifndef CLP_NO_VECTOR
282 const int *vecind,
const double *vecelem);
283 #ifndef CLP_NO_VECTOR
300 const double * element,
int numberColumns=-1);
314 void deleteCols(
const int numDel,
const int * indDel);
316 void deleteRows(
const int numDel,
const int * indDel);
322 const int numReplace,
const double * newElements);
328 bool keepZero=
false);
368 const int numMajor,
const int * indMajor);
373 const int numMajor,
const int * indMajor);
379 const int numMajor,
const int * indMajor,
380 const int numMinor,
const int * indMinor);
389 void copyOf(
const bool colordered,
390 const int minor,
const int major,
const CoinBigIndex numels,
391 const double * elem,
const int * ind,
393 const double extraMajor=0.0,
const double extraGap=0.0);
417 const int minor,
const int major,
419 double *& elem,
int *& ind,
421 const int maxmajor = -1,
const CoinBigIndex maxsize = -1);
459 void times(
const double * x,
double * y)
const;
460 #ifndef CLP_NO_VECTOR
469 #ifndef CLP_NO_VECTOR
515 void dumpMatrix(
const char* fname = NULL)
const;
531 #ifndef CLP_NO_VECTOR
537 const double *vecelem);
538 #ifndef CLP_NO_VECTOR
548 const double *vecelem);
549 #ifndef CLP_NO_VECTOR
568 const double * element);
623 void timesMajor(
const double * x,
double * y)
const;
624 #ifndef CLP_NO_VECTOR
634 void timesMinor(
const double * x,
double * y)
const;
635 #ifndef CLP_NO_VECTOR
647 #ifndef CLP_NO_VECTOR
655 template <
class FloatEqual>
bool
758 const double extraMajor,
const double extraGap);
761 const int minor,
const int major,
const CoinBigIndex numels,
762 const double * elem,
const int * ind,
764 const double extraMajor,
const double extraGap);
767 const int minor,
const int major,
const CoinBigIndex numels,
768 const double * elem,
const int * ind,
782 const int * rowIndices,
783 const int * colIndices,
784 const double * elements,
805 int extraForMajor,
int extraElements,
811 int numberRows,
const int * whichRows,
812 int numberColumns,
const int * whichColumns);
841 int verifyMtx(
int verbosity = 1,
bool zeroesAreError =
false)
const ;
848 const int minor,
const int major,
const CoinBigIndex numels,
849 const double * elem,
const int * ind,
851 const double extraMajor=0.0,
const double extraGap=0.0);
854 const int minor,
const int major,
855 const double * elem,
const int * ind,
858 const int minor,
const int major,
const CoinBigIndex numels,
859 const double * elem,
const int * ind,
875 const double * element,
int numberOther=-1);
887 const double * element,
int numberOther=-1);