4 #ifndef CoinIndexedVector_H
5 #define CoinIndexedVector_H
9 # pragma warning(disable:4786)
21 #define COIN_INDEXED_TINY_ELEMENT 1.0e-50
22 #define COIN_INDEXED_REALLY_TINY_ELEMENT 1.0e-100
24 #define COIN_INDEXED_TINY_ELEMENT 1.0e-35
25 #define COIN_INDEXED_REALLY_TINY_ELEMENT 1.0e-39
145 #ifndef CLP_NO_VECTOR
157 void borrowVector(
int size,
int numberIndices,
int* inds,
double* elems);
168 void setVector(
int numberIndices,
const int * inds,
const double * elems);
174 void setVector(
int size,
int numberIndices,
const int * inds,
const double * elems);
177 void setConstant(
int size,
const int * inds,
double elems);
180 void setFull(
int size,
const double * elems);
188 void insert(
int index,
double element);
191 void add(
int index,
double element);
219 int clean(
double tolerance);
236 int scan(
int start,
int end);
239 int scan(
double tolerance);
243 int scan(
int start,
int end,
double tolerance);
248 int scanAndPack(
int start,
int end,
double tolerance);
251 const double * elements);
254 #ifndef CLP_NO_VECTOR
262 void swap(
int i,
int j);
283 #ifndef CLP_NO_VECTOR
400 #ifndef CLP_NO_VECTOR
413 const int * inds,
const double * elems);
415 const int * inds,
const double * elems);
417 const int * inds,
const double * elems);
420 const int * inds,
double value);
478 {
return size_!=-1; }
567 {
return reinterpret_cast<double *
> ((
size_>-2) ?
array_ : NULL); }
675 {
return reinterpret_cast<int *
> ((
size_>-2) ?
array_ : NULL); }
783 {
return reinterpret_cast<unsigned int *
> ((
size_>-2) ?
array_ : NULL); }