Welcome to Python-flavored Magnum! Please note that, while already being
rather stable, this functionality is still considered experimental and
some APIs might get changed without preserving full backwards compatibility.
        StridedArrayView3D class
Three-dimensional array view with stride information
See StridedArrayView1D for more information.
Methods
- def broadcasted(self, dimension: int, size: int) -> StridedArrayView3D
- Broadcast a dimension
- def expanded(self, dimension: int, size: tuple[int, int]) -> StridedArrayView4D
- Expand a dimension
- def flipped(self, dimension: int) -> StridedArrayView3D
- Flip a dimension
- def slice_bit(self, index: int) -> StridedBitArrayView3D
- Slice to a bit
- def transposed(self, a: int, b: int) -> StridedArrayView3D
- Transpose two dimensions
Special methods
- def __buffer__(self, flags, /)
- Return a buffer object that exposes the underlying memory of the object.
- def __bytes__(self, /) -> bytes
- Convert to bytes
- def __getitem__(self, slice: slice) -> StridedArrayView3D
- Slice the view
- def __getitem__(self, i: int) -> StridedArrayView2D
- Sub-view at given position
- def __getitem__(self, i: tuple[int, int, int]) -> object
- Value at given position
- def __getitem__(self, slice: tuple[slice, slice, slice]) -> StridedArrayView3D
- Slice the view
- def __init__(self, /) -> None
- Default constructor
- def __init__(self, arg0: Buffer, /) -> None
- Construct from a buffer
- def __len__(self, /) -> int
- View size in the top-level dimension
- def __release_buffer__(self, buffer, /)
- Release the buffer object that exposes the underlying memory of the object.
Properties
Method documentation
              def corrade.
            Broadcast a dimension
| Exceptions | |
|---|---|
| IndexError | If dimensionis not0,1or2 | 
              def corrade.
            Expand a dimension
| Exceptions | |
|---|---|
| IndexError | If dimensionis not0,1or2 | 
| ValueError | If product of sizeis not equal to size indimension | 
              def corrade.
            Flip a dimension
| Exceptions | |
|---|---|
| IndexError | If dimensionis not0,1or2 | 
              def corrade.
            Transpose two dimensions
| Exceptions | |
|---|---|
| IndexError | If aorbis not0,1or2or if  they’re the same | 
              def corrade.
            Value at given position
| Exceptions | |
|---|---|
| IndexError | If iis out of range | 
| NotImplementedError | If the view was created from a buffer and
format is not one of 'b','B','h','H','i','I','q','Q','f'or'd' |