Presolve Utility Functions

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.

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.


Generated on 15 Mar 2015 for Coin-All by  doxygen 1.6.1