this class has routines for linear algebra.
More...
#include <OSMathUtil.h>
this class has routines for linear algebra.
- Author
- Robert Fourer, Jun Ma, Kipp Martin
- Version
- 1.0, 03/14/2004
- Since
- OS 1.0
Definition at line 57 of file OSMathUtil.h.
◆ MathUtil()
◆ ~MathUtil()
◆ convertLinearConstraintCoefficientMatrixToTheOtherMajor()
SparseMatrix * MathUtil::convertLinearConstraintCoefficientMatrixToTheOtherMajor |
( |
bool | isColumnMajor, |
|
|
int | startSize, |
|
|
int | valueSize, |
|
|
int * | start, |
|
|
int * | index, |
|
|
double * | value, |
|
|
int | dimension ) |
|
static |
Round a double number to the precision specified.
- Parameters
-
X | holds the number to be rounded. |
precision | holds the number of digit after (or before if negative) the decimal point. |
- Returns
- the rounded number. Calculation of x mod y.
- Parameters
-
x | holds the number before the mod operator. |
x | holds the number after the mod operator. |
- Returns
- the result of x mod y.
- Parameters
-
isColumnMajor | holds whether the coefMatrix (AMatrix) holding linear program data is stored by column. If false, the matrix is stored by row. |
startSize | holds the size of the start array |
valueSize | holds the size of the index and value arrays |
start | holds an integer array of start elements in coefMatrix (AMatrix), which points to the start of a column (row) of nonzero elements in coefMatrix (AMatrix). |
index | holds an integer array of rowIdx (or colIdx) elements in coefMatrix (AMatrix). If the matrix is stored by column (row), rowIdx (colIdx) is the array of row (column) indices. |
value | holds a double array of value elements in coefMatrix (AMatrix), which contains nonzero elements. |
dimension | holds the column count if the input matrix is row major (row count = start.length-1) or the row number if the input matrix is column major (column count = start.length -1) |
- Returns
- Linear constraint coefficient matrix in the other major of the input matrix. Return null if input matrix not valid.
Definition at line 57 of file OSMathUtil.cpp.
◆ format_os_dtoa()
std::string MathUtil::format_os_dtoa |
( |
double | x | ) |
|
- Parameters
-
x | is the double that gets converted into a string this takes the David Gay dtoa and converts to a formatted string |
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/coin-or-OS-2.10.3-build/OS-releases-2.10.3/OS/src/OSUtils/OSMathUtil.h
- /builddir/build/BUILD/coin-or-OS-2.10.3-build/OS-releases-2.10.3/OS/src/OSUtils/OSMathUtil.cpp