array¶
- photonforge.typing.array(dtype, ndims, ndims_max=None)[source]¶
Type for arrays with specified number of dimensions.
- Parameters:
dtype – Scalar type for the array elements.
ndims – Number of dimensions for the array.
ndims_max – If set, maximal number of dimensions for the array. Any dimensions between
ndimsandndims_max(inclusive) are valid.
- Returns:
Array type.