Go to the documentation of this file.
4 #ifndef CoinPackedMatrix_H
5 #define CoinPackedMatrix_H
122 #ifndef COIN_FAST_CODE
124 throw CoinError(
"bad index",
"vectorFirst",
"CoinPackedMatrix");
131 #ifndef COIN_FAST_CODE
133 throw CoinError(
"bad index",
"vectorLast",
"CoinPackedMatrix");
139 #ifndef COIN_FAST_CODE
141 throw CoinError(
"bad index",
"vectorSize",
"CoinPackedMatrix");
145 #ifndef CLP_NO_VECTOR
148 #ifndef COIN_FAST_CODE
150 throw CoinError(
"bad index",
"vector",
"CoinPackedMatrix");
185 #ifndef CLP_NO_VECTOR
197 const int *vecind,
const double *vecelem);
198 #ifndef CLP_NO_VECTOR
212 const double * element,
int numberRows=-1);
213 #ifndef CLP_NO_VECTOR
225 const int *vecind,
const double *vecelem);
226 #ifndef CLP_NO_VECTOR
240 const double * element,
int numberColumns=-1);
254 void deleteCols(
const int numDel,
const int * indDel);
256 void deleteRows(
const int numDel,
const int * indDel);
262 const int numReplace,
const double * newElements);
268 bool keepZero=
false);
308 const int numMajor,
const int * indMajor);
313 const int numMajor,
const int * indMajor);
319 const int numMajor,
const int * indMajor,
320 const int numMinor,
const int * indMinor);
329 void copyOf(
const bool colordered,
330 const int minor,
const int major,
const CoinBigIndex numels,
331 const double * elem,
const int * ind,
333 const double extraMajor=0.0,
const double extraGap=0.0);
351 const int minor,
const int major,
353 double *& elem,
int *& ind,
355 const int maxmajor = -1,
const CoinBigIndex maxsize = -1);
384 void times(
const double * x,
double * y)
const;
385 #ifndef CLP_NO_VECTOR
394 #ifndef CLP_NO_VECTOR
434 void dumpMatrix(
const char* fname = NULL)
const;
447 #ifndef CLP_NO_VECTOR
453 const double *vecelem);
454 #ifndef CLP_NO_VECTOR
464 const double *vecelem);
465 #ifndef CLP_NO_VECTOR
523 void timesMajor(
const double * x,
double * y)
const;
524 #ifndef CLP_NO_VECTOR
534 void timesMinor(
const double * x,
double * y)
const;
535 #ifndef CLP_NO_VECTOR
547 #ifndef CLP_NO_VECTOR
553 template <
class FloatEqual>
bool
630 const double extraMajor,
const double extraGap);
633 const int minor,
const int major,
const CoinBigIndex numels,
634 const double * elem,
const int * ind,
636 const double extraMajor,
const double extraGap);
639 const int minor,
const int major,
const CoinBigIndex numels,
640 const double * elem,
const int * ind,
654 const int * rowIndices,
655 const int * colIndices,
656 const double * elements,
671 int numberRows,
const int * whichRows,
672 int numberColumns,
const int * whichColumns);
682 const int minor,
const int major,
const CoinBigIndex numels,
683 const double * elem,
const int * ind,
685 const double extraMajor=0.0,
const double extraGap=0.0);
688 const int minor,
const int major,
689 const double * elem,
const int * ind,
692 const int minor,
const int major,
const CoinBigIndex numels,
693 const double * elem,
const int * ind,
703 const double * element,
int numberOther=-1);
710 const double * element,
int numberOther=-1);
717 const double * element);