5.1. Boost package for array manipulation
The ARRAY_BOOST module extends array operations with temporary array views over fixed-size arrays and C++ handled vectors, emptiness checks, sub-array views, and arithmetic operators on fixed-size arrays.
All functions and symbols are in “array_boost” module, use require to get access to it.
require daslib/array_boost
5.1.1. Temporary arrays
5.1.1.1. temp_array
- temp_array(arr: auto const implicit ==const ): auto
Warning
This is unsafe operation.
def temp_array (arr: auto const implicit ==const) : auto
- Arguments:
arr : auto implicit!
- temp_array(data: auto? ==const; lenA: int|int64; a: auto(TT) ): array<TT>
- temp_array(arr: auto implicit ==const ): auto
- temp_array(data: auto? ==const; lenA: int|int64; a: auto(TT) ): array<TT>
5.1.2. Empty check
- empty(v: auto(VecT) ): auto
def empty (v: auto(VecT)) : auto
- Arguments:
v : auto(VecT)
5.1.3. Sub-array view
5.1.3.1. array_view
- array_view(bytes: array<auto(TT)>; offset: int|int64; length: int|int64; blk: block<(view:array<TT>#):void> ): auto
def array_view (bytes: array<auto(TT)>; offset: int|int64; length: int|int64; blk: block<(view:array<TT>#):void>) : auto
- Arguments:
bytes : array<auto(TT)>!
offset : option<int| int64>
length : option<int| int64>
blk : block<(view:array<TT>#):void>
- array_view(bytes: array<auto(TT)>; offset: int|int64; length: int|int64; blk: block<(var view:array<TT>#):void> ): auto