LinearModel.Preallocate Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Allocates data structures for a new linear model.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Overridable Sub Preallocate ( _
cols As Integer, _
rows As Integer, _
nonzeroes As Integer _
)
public virtual void Preallocate(
int cols,
int rows,
int nonzeroes
)
public:
virtual void Preallocate(
int cols,
int rows,
int nonzeroes
)
abstract Preallocate :
cols:int *
rows:int *
nonzeroes:int -> unit
override Preallocate :
cols:int *
rows:int *
nonzeroes:int -> unit
public function Preallocate(
cols : int,
rows : int,
nonzeroes : int
)
Parameters
- cols
Type: System.Int32
The number of columns to create.
- rows
Type: System.Int32
The number of rows to create.
- nonzeroes
Type: System.Int32
The number of non-zero coefficients in the matrix.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.