maxon.ToBlock

maxon.ToBlock(data, size, stride=None, dt=None)

Makes a maxon.Block or a maxon.StridedBlock from a pointer, a size and a stride.

Parameters
  • data (Any.) – The data to transform to a Block.

  • size (int) – Number of elements.

  • stride (int) – Element stride.

  • dt (maxon.DataType) – The Datatype of the data to be converted as block

Returns

A block of elements for this data and datatype.

Return type

Union[maxon.StridedBlock, maxon.Block]