Osi 0.107.7

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
Presolve Utility Functions

Utilities used by multiple presolve transform objects. More...

## Functions
double * | presolve_dupmajor (const double *elems, const int *indices, int length, CoinBigIndex offset, int tgt=-1)
| Duplicate a major-dimension vector; optionally omit the entry with minor index `tgt`. More...
void | coin_init_random_vec (double *work, int n)
| Initialize a vector with random numbers. More...

## Detailed Description

Utilities used by multiple presolve transform objects.

## Function Documentation

double* presolve_dupmajor | ( | const double * | elems,
|  | const int * | indices,
|  | int | length,
|  | CoinBigIndex | offset,
|  | int | tgt = `-1`
| ) |  |

Duplicate a major-dimension vector; optionally omit the entry with minor index `tgt`.

Designed to copy a major-dimension vector from the paired coefficient (`elems`) and minor index (`indices`) arrays used in the standard packed matrix representation. Copies `length` entries starting at `offset`.

If `tgt` is specified, the entry with minor index == `tgt` is omitted from the copy.

void coin_init_random_vec | ( | double * | work,
|  | int | n
| ) |  |

Initialize a vector with random numbers.