mm.math.block

math.block(axes=(-2, -1))

Returns a matrix made from the given blocks.

Parameters:
  • blocks (List[List[ndarray[Tuple[int, ...], Union[TypeVar(R, float16, float32, float64), TypeVar(C, complex64, complex128), TypeVar(Z, int16, int32, int64), TypeVar(N, uint16, uint32, uint64)]]]]) – A list of lists of compatible blocks.

  • axes – The axes to stack the blocks along.

Return type:

ndarray[Tuple[int, ...], Union[TypeVar(R, float16, float32, float64), TypeVar(C, complex64, complex128), TypeVar(Z, int16, int32, int64), TypeVar(N, uint16, uint32, uint64)]]

Returns:

The matrix made of blocks.