boost::multi::restriction
An array interface for a function of D integer arguments restricted to an certain Cartesian grid (extents), elements are generated lazily
Synopsis
Declared in <boost/multi/restriction.hpp>
template<
dimensionality_type D,
class Proj>
class restriction;
Types
Name |
Description |
Random‐access iterator in the leading dimension, in general they dereference to a restriction array of lower dimension or, for |
Type Aliases
Name |
Description |
Signed integer type for index arithmetic |
|
Element type of the restriction array |
|
|
Element type of the restriction array |
Integer type to store an index in the leading dimension |
|
Tuple to store a set of |
|
|
Tuple to store a set of |
Type generated by binding the first index in the array (leading dimension), for |
|
Integer type to store the size in the leading dimension |
|
Type generated by binding the first index in the array (leading dimension), for |
Member Functions
Name |
Description |
|
constructs a |
Back subarray restriction in the leading dimensions or, in |
|
returns an iterator to the beginning in the leading dimension |
|
yields an array restriction of lower dimensionality that holds the diagonal (in the first two dimensions), array must be square (first two sizes equal). (Only for |
|
An array interface with of the same dimensionality to which each element is applied a projection function (unary function) (i.e. each element is obtained by the composition of the restricted function and the projection) |
|
yields a random‐access output range with all the elements of the array |
|
returns an iterator to the end in the leading dimension |
|
|
|
returns the extent of valid indices in the leading dimension. |
|
returns the index extents (structured cartesian product of index ranges) for all dimensions as an extents_type ( |
|
Front subarray restriction in the leading dimensions or, in |
|
returns a cursor pointing to the top corner element of the array (a cursors is a lightweight representation of the array that drops the extents with pointer semantics) unlike |
|
returns the total number of elements in the array |
|
returns a materialized owning array of the restriction (allocates, O(N) operation) |
|
Subscript operators |
|
Bitwise negation operators |
|
yields a restriction of higher dimension by splitting the leading dimension into equal‐sized partitions of size |
|
yields a new restriction of higher dimension by repeating |
|
yields a restruction that has its indices rotated (to the left) |
|
returns the size of the restriction array in the leading dimension. |
|
returns a tuple decribing sizes across all the dimensions of the restriction array. |
|
yields a restriction transformed in the leading dimension |
|
yields a transposed view of the restriction array (first two indices exchanged). (Only for |
|
yields a restruction that has its indices unrotated (rotated to the right) |
Static Data Members
Name |
Description |
Integer constant describing the dimensionality of the restriction array |
|
Integer constant describing the dimensionality of the restriction array |
Deduction Guides
Name |
Description |
deduces the dimensionality of the restriction from the extents and the restricted function |
Non-Member Functions
Name |
Description |
creates a restriction of |
|
creates a restriction of D dimensions of a function that takes D arguments given an extents of Cartesian indices. |
Created with MrDocs