Inserts a list of scalar entries into a single row of a double-precision sparse matrix.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The row for value insertion. Indices expected to be in the bounds of matrix dimensions, undefined behavior if not met.
The number of values to insert into
A. Each of
valare of size
Pointer to list of scalar values to insert into the sparse matrix. The value is inserted into the location specified by the corresponding indices of
j. Must hold
An array of column indices that correspond to the values in val. Must hold
Use to build a sparse matrix by providing a list of point entries for a single column. For each entry provided, update
] = val[i]. This will not replace the existing contents of the column, it appends new values and overwrites overlapping values.
Note that matrix properties cannot be modified after value insertion begins. This includes properties such as specifying a triangular matrix.
Insertion can be expensive, generally speaking it is best to do a batch update. Inserted values may be temporarily held internally within the object and only inserted into the sparse format when a later computation triggers a need to insert.
indx are always assumed to be stored in ascending order. Additionally, indices are assumed to be unique. Finally, indices are assumed to be in the bounds of the matrix. Undefined behavior if any of these assumptions are not met.All indices are 0 based (the first element of a pointer is