slice2d

A contiguous 2D slice.

The data is stored row-major.

Constructors

this
this(T[] data, size_t stride, size_t rows, size_t columns)

Construct a new slice of the given data with the given size.

Members

Functions

opDollar
size_t opDollar()

Obtain the number of columns in this vector using the dollar operator.

opDollar
size_t opDollar()

Obtain the number of rows in this vector using the dollar operator.

opIndex
T opIndex(size_t row, size_t column)

Index this slice.

opIndex
slice2d!T opIndex(size_t row, size_t[2] columns)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
slice2d!T opIndex(size_t[2] rows, size_t column)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
slice2d!T opIndex(size_t[2] rows, size_t[2] columns)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
slice2d!T opIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
auto opIndexAssign(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
auto opIndexAssign(T value, size_t row, size_t column)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
auto opIndexAssign(slice2d!T value)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
auto opIndexAssign(slice2d!T value, size_t[2] rows, size_t[2] columns)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
size_t[2] opSlice(size_t a, size_t b)

Obtain a pair of indices describing a span of rows.

opSlice
size_t[2] opSlice(size_t a, size_t b)

Obtain a pair of indices describing a span of columns.

Properties

columns
size_t columns [@property getter]

The number of columns in this slice.

rows
size_t rows [@property getter]

The number of rows in this slice.

Meta