6 #ifndef CoinIndexedVector_H
7 #define CoinIndexedVector_H
11 # pragma warning(disable:4786)
24 #define COIN_INDEXED_TINY_ELEMENT 1.0e-50
25 #define COIN_INDEXED_REALLY_TINY_ELEMENT 1.0e-100
27 #define COIN_INDEXED_TINY_ELEMENT 1.0e-35
28 #define COIN_INDEXED_REALLY_TINY_ELEMENT 1.0e-39
148 #ifndef CLP_NO_VECTOR
160 void borrowVector(
int size,
int numberIndices,
int* inds,
double* elems);
171 void setVector(
int numberIndices,
const int * inds,
const double * elems);
177 void setVector(
int size,
int numberIndices,
const int * inds,
const double * elems);
180 void setConstant(
int size,
const int * inds,
double elems);
183 void setFull(
int size,
const double * elems);
191 void insert(
int index,
double element);
202 void add(
int index,
double element);
250 int clean(
double tolerance);
272 int scan(
int start,
int end);
275 int scan(
double tolerance);
279 int scan(
int start,
int end,
double tolerance);
284 int scanAndPack(
int start,
int end,
double tolerance);
287 const double * elements);
290 const double * elements);
295 #ifndef CLP_NO_VECTOR
305 void swap(
int i,
int j);
326 #ifndef CLP_NO_VECTOR
446 #ifndef CLP_NO_VECTOR
459 const int * inds,
const double * elems);
461 const int * inds,
const double * elems);
463 const int * inds,
const double * elems);
466 const int * inds,
double value);
524 {
return size_!=-1; }
574 {
array_=
new char [size];}
599 void getCapacity(
int numberBytes,
int numberIfNeeded=-1);
627 {
return reinterpret_cast<double *
> ((
size_>-2) ?
array_ : NULL); }
735 {
return reinterpret_cast<long double *
> ((
size_>-2) ?
array_ : NULL); }
789 {
return reinterpret_cast<int *
> ((
size_>-2) ?
array_ : NULL); }
897 {
return reinterpret_cast<unsigned int *
> ((
size_>-2) ?
array_ : NULL); }
951 {
return reinterpret_cast<void **
> ((
size_>-2) ?
array_ : NULL); }
1005 {
return reinterpret_cast<void **
> ((
size_>-2) ?
array_ : NULL); }
1010 inline void setSize(
int value)
1058 #ifndef COIN_PARTITIONS
1059 #define COIN_PARTITIONS 8
1114 int scan(
int partition,
double tolerance=0.0);