slice.slice

  1. Slice!(T*, N, Contiguous, Pointers!LabelTypes) slice(size_t[N] lengths)
  2. Slice!(T*, N, Contiguous, Pointers!LabelTypes) slice(size_t[N] lengths, T init)
    template slice(Args...)
    @optmath
    Slice!(T*, N, Contiguous, Pointers!LabelTypes)
    slice
    (
    size_t N
    )
    (
    size_t[N] lengths
    ,)
    if (
    Args.length
    )

Parameters

lengths size_t[N]

List of lengths for each dimension.

init T

Value to initialize with (optional).

Return Value

Type: Slice!(T*, N, Contiguous, Pointers!LabelTypes)

initialzed n-dimensional slice

Meta