Initializing help system before first use

# GetRows(Int64[], Int32[], Double[], Int64, Int64, Int32, Int32) Method

Returns the nonzeros in the constraint matrix for the rows in a given range.
Namespace: Optimizer
Assembly: xprsdn (in xprsdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
C#

    public void GetRows(
    	long[] start,
    	int[] colind,
    	double[] colcoef,
    	long maxcoefs,
    	out long p_ncoefs,
    	int first,
    	int last
    )

#### Parameters

start Int64
  Integer array which will be filled with the indices indicating the starting offsets in the colind and colcoef arrays for each requested row. It must be of length last-first+2. Row i starts at position start[i] in the colind and colcoef arrays, and has start[i+1]-start[i] elements in it. May be null if not required.
colind Int32
  Integer array of length maxcoefs which will be filled with the column indices of the nonzero elements for each row. May be null if not required.
colcoef Double
  Double array of length maxcoefs which will be filled with the nonzero element values. May be null if not required.
maxcoefs Int64
  Maximum number of elements to be retrieved.
p_ncoefs Int64
  Pointer to the integer where the number of nonzero elements in the selected rows will be returned. If the number of nonzero elements is greater than maxcoefs, then only maxcoefs elements will be returned. If p_ncoefs is smaller than maxcoefs, then only p_ncoefs will be returned. May be null if not required.
first Int32
  First row in the range.
last Int32
  Last row in the range.

See Also

#### Reference

XPRSprob Class
GetRows Overload
Optimizer Namespace
Parent Topic GetRows Method

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.