Returns columns in a sparse matrix representation.
Namespace: ILOG.Concert
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
void GetCols( int begin, int num, int[][] ind, double[][] val ) |
| Visual Basic |
|---|
Sub GetCols ( _ begin As Integer, _ num As Integer, _ ind As Integer()(), _ val As Double()() _ ) |
Parameters
- begin
- Type: System..::..Int32
The index of the first column being queried.
- num
- Type: System..::..Int32
The number of consecutive columns being queried.
- ind
- Type: array<array<System..::..Int32>[]()[][]>[]()[][]
An array of arrays of integers to where the row indices of the queried columns will be copied. The nonzero indices of column begin+i will be copied into an array returned as ind[i]. This array must be initialized at least to size num.
- val
- Type: array<array<System..::..Double>[]()[][]>[]()[][]
An array of arrays of doubles to where the nonzero coefficients of the queried columns will be copied. The nonzero values of column begin+i will be copied into an array returned as val[i]. This array must be initialized to at least size num.
Remarks
For every column, an array of row indices and an array of values is returned, corresponding to the nonzeros in the specified columns.
Note that if explicit zero coefficients were submitted to the matrix then the function may return zero coefficients in val, i.E., there is no guarantee that the function prunes explicit zero coefficients.