Inserts a set of values at the specified positions in the SparseMatrix.
Namespace: Extreme.Mathematics.LinearAlgebra.Sparse
Assembly: Extreme.Numerics (in Extreme.Numerics)
Version: 2.1.7017.0
Syntax
| Visual Basic (Declaration) |
|---|
Public Overridable Sub InsertEntries ( _ values As Double(), _ rows As Integer(), _ columns As Integer() _ ) |
| C# |
|---|
public virtual void InsertEntries ( double[] values, int[] rows, int[] columns ) |
| Visual C++ |
|---|
public: virtual void InsertEntries ( array<double>^ values, array<int>^ rows, array<int>^ columns ) |
Parameters
- values
- System.Double[]
Array of values to insert.
- rows
- System.Int32[]
Array of zero-based row indexes where the elements of values are to be inserted.
- columns
- System.Int32[]
Array zero-based column indexes where the elements of values are to be inserted.
Remarks
Existing nonzero components are overwritten. If the same row and column appear
multiple times, then only the last value is entered.
Exceptions
| Exception | Condition |
|---|---|
| System.ArgumentNullException | values is nullNothingnullptr -or- rows is nullNothingnullptr -or- columns is nullNothingnullptr |
| Extreme.Mathematics.DimensionMismatchException | The length of rows is not equal to the length of values. -or- The length of columns is not equal to the length of values. |