slicedNdField

Creates an n-dimensional slice-shell over an ndField.

  1. Slice!(IndexIterator!(FieldIterator!(ndIotaField!N), ndField), N) slicedNdField(ndField field, size_t[N] lengths)
    slicedNdField
    (
    ndField
    size_t N
    )
    (
    ndField field
    ,
    size_t[N] lengths...
    )
    if (
    N
    )
  2. auto slicedNdField(ndField field)

Parameters

field ndField

A ndField. Lengths should fit into field's shape.

lengths size_t[N]

A list of lengths for each dimension.

Return Value

Type: Slice!(IndexIterator!(FieldIterator!(ndIotaField!N), ndField), N)

n-dimensional slice

See Also

concatenation examples.

Meta