#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) |
Definition at line 58 of file OSMathUtil.h.
MathUtil::MathUtil | ( | ) |
the class constructor
MathUtil::~MathUtil | ( | ) |
the class destructor
static SparseMatrix* MathUtil::convertLinearConstraintCoefficientMatrixToTheOtherMajor | ( | bool | isColumnMajor, | |
int | startSize, | |||
int | valueSize, | |||
int * | start, | |||
int * | index, | |||
double * | value, | |||
int | dimension | |||
) | [static] |
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) |
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 |