Skip to main content

block

Method of BoolArray.

Overloads

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

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

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

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.

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

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

Parameters

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