Multi-dimensional data arrays with labeled dimensions for scientific computing
—
Functions for manipulating array shapes, dimensions, and broadcasting with full metadata preservation.
Core functions for changing array structure while preserving data and metadata.
def broadcast(x, *, dims=None, shape=None):
"""Broadcast variable to specified shape"""
def transpose(x, dims=None):
"""Reorder dimensions"""
def squeeze(x, dim=None):
"""Remove dimensions of size 1"""
def flatten(x, dims, to):
"""Flatten multiple dimensions into one"""
def fold(x, dim, dims, shape):
"""Fold dimension into multiple dimensions"""
def concat(x, dim):
"""Concatenate along dimension"""Install with Tessl CLI
npx tessl i tessl/pypi-scipp