mrpro.utils
Functions for tensor shaping, unit conversion, typing, etc.
Functions
|
Broadcasting on the right. |
|
Fill tensor in-place along a specified dimension with increasing integers. |
|
Convert a multi-dimensional index into a flat index. |
|
Reduce expanded dimensions in a view to singletons. |
|
Replace dimensions with all equal values with singletons. |
|
Reshape a tensor while preserving broadcasted (stride 0) dimensions where possible. |
|
Apply a function to a tensor serially along multiple dimensions. |
|
Split a tensor of indices into different blocks. |
|
Unsqueeze multiple times in the leftmost dimension. |
|
Unsqueeze multiple times in the rightmost dimension. |
|
Unsqueeze tensors on the left to the same number of dimensions. |
|
Unsqueeze tensors on the right to the same number of dimensions. |
|
Change shape of data by center cropping or symmetric zero-padding. |
Classes
Create tensor attributes as buffer. |
Modules
Slice Profiles. |
|
Some type hints that are used in multiple places in the codebase but not part of mrpro's public API. |
|
Conversion between different units. |