Skip to main content

block

Method of RealSparseMatrix.

Overloads

NameDescription
block(const List<integer> start, const List<integer> shape) -> RealSparseMatrixGet a block (sub-RealSparseMatrix) of the RealSparseMatrix.
block(integer i, integer j, integer exti, integer extj) -> RealSparseMatrixGet a block (sub-RealSparseMatrix) of the RealSparseMatrix.

block(const List<integer> start, const List<integer> shape) -> RealSparseMatrix

Get a block (sub-RealSparseMatrix) of the RealSparseMatrix.

Parameters

  • start: Start indices of the block
  • shape: Shape of the block

block(integer i, integer j, integer exti, integer extj) -> RealSparseMatrix

Get a block (sub-RealSparseMatrix) of the RealSparseMatrix.

Parameters

  • i: The row to start from (zero-based).
  • j: The column to start from (zero-based).
  • exti: The number of rows in the block.
  • extj: The number of columns in the block.