Skip to content

stack_utils#

Includes utility functions for stack operations.

Functions:

  • scale_stack

    Scales the given stack by the given factor.

scale_stack #

scale_stack(stacked: NDArray, factor: NDArray, axis: int = 0) -> NDArray

Scales the given stack by the given factor.

Parameters:

  • stacked (NDArray) –

    The stack to scale.

  • factor (NDArray) –

    The factor to scale the stack by.

  • axis (int, default: 0 ) –

    The axis along which to scale the stack.

Returns:

  • NDArray

    The scaled stack of arrays