Skip to main content

insert

Method of RealSparseMatrix.

Overloads

NameDescription
insert(const IntegerArray rows, const IntegerArray cols, const BoolArray values) -> RealSparseMatrixInserts values into a sparse matrix.
insert(const IntegerArray rows, const IntegerArray cols, const RealArray values) -> RealSparseMatrixInserts values into a sparse matrix.
insert(const IntegerArray rows, const IntegerArray cols, const IntegerArray values) -> RealSparseMatrixInserts values into a sparse matrix.

insert(const IntegerArray rows, const IntegerArray cols, const BoolArray values) -> RealSparseMatrix

Inserts values into a sparse matrix.

Changes the matrix into a non compressed form if that was not the case.

Parameters

  • rows: The row index.
  • cols: The column index.
  • values: The value to insert.

insert(const IntegerArray rows, const IntegerArray cols, const RealArray values) -> RealSparseMatrix

Inserts values into a sparse matrix.

Changes the matrix into a non compressed form if that was not the case.

Parameters

  • rows: The row index.
  • cols: The column index.
  • values: The value to insert.

insert(const IntegerArray rows, const IntegerArray cols, const IntegerArray values) -> RealSparseMatrix

Inserts values into a sparse matrix.

Changes the matrix into a non compressed form if that was not the case.

Parameters

  • rows: The row index.
  • cols: The column index.
  • values: The value to insert.