this class has routines for linear algebra. More...
#include <OSMathUtil.h>
Public Member Functions | |
| MathUtil () | |
| the class constructor | |
| ~MathUtil () | |
| the class destructor | |
| std::string | format_os_dtoa (double x) |
Static Public Member Functions | |
| static SparseMatrix * | convertLinearConstraintCoefficientMatrixToTheOtherMajor (bool isColumnMajor, int startSize, int valueSize, int *start, int *index, double *value, int dimension) |
| Round a double number to the precision specified. | |
this class has routines for linear algebra.
Definition at line 57 of file OSMathUtil.h.
| MathUtil::MathUtil | ( | ) |
the class constructor
Definition at line 47 of file OSMathUtil.cpp.
| MathUtil::~MathUtil | ( | ) |
the class destructor
Definition at line 51 of file OSMathUtil.cpp.
| 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.
| X | holds the number to be rounded. | |
| precision | holds the number of digit after (or before if negative) the decimal point. |
| x | holds the number before the mod operator. | |
| x | holds the number after the mod operator. |
| isColumnMajor | holds whether the coefMatrix (AMatrix) holding linear program data is stored by column. If false, the matrix is stored by row. | |
| 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 (columnh count = start.length -1) |
Definition at line 57 of file OSMathUtil.cpp.
| std::string MathUtil::format_os_dtoa | ( | double | x | ) |
| x | is the double that gets converted into a string this takes the David Gay dtoa and converts to a formatted string |
1.6.1