Skip to main content

block

Method of RealArray.

Overloads

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

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

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

Parameters

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

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

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

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.