Allocates a bitwise packed n-dimensional reference-counted (thread-safe) boolean slice.
GC-Allocates a bitwise packed n-dimensional boolean slice.
Allocates a common n-dimensional array using data from a slice.
Allocates an array through a specified allocator and creates an n-dimensional slice over it. See also std.experimental.allocator.
Allocates an uninitialized array through a specified allocator and creates an n-dimensional slice over it. See also std.experimental.allocator.
Allocates a minimally initialized n-dimensional reference-counted (thread-safe) slice.
Allocates a common n-dimensional array from a slice.
Allocates an n-dimensional reference-counted (thread-safe) slice.
Shape of a common n-dimensional array.
GC-Allocates an n-dimensional slice.
Frees aligned memory allocaged by CRuntime.
Frees memory using core.stdc.stdlib.free.
Allocates a copy of a slice using core.stdc.stdlib.malloc.
Allocates an uninitialized aligned array using core.stdc.stdlib.malloc and creates an n-dimensional slice over it.
Allocates an uninitialized array using core.stdc.stdlib.malloc and creates an n-dimensional slice over it.
GC-Allocates an uninitialized aligned an n-dimensional slice.
Allocates an n-dimensional reference-counted (thread-safe) slice without memory initialisation.
GC-Allocates an uninitialized n-dimensional slice.
GC-Allocates an n-dimensional slice.
shape | Returns a shape of a common n-dimensional array. |
Function Name | Description |
---|---|
slice | Allocates a slice using GC. |
bitSlice | GC-Allocates a bitwise packed n-dimensional boolean slice. |
ndarray | Allocates a common n-dimensional array from a slice. |
uninitSlice | Allocates an uninitialized slice using GC. |
rcslice | Allocates an n-dimensional reference-counted (thread-safe) slice. |
bitRcslice | Allocates a bitwise packed n-dimensional reference-counted (thread-safe) boolean slice. |
mininitRcslice | Allocates a minimally initialized n-dimensional reference-counted (thread-safe) slice. |
Function Name | Description |
---|---|
makeNdarray | Allocates a common n-dimensional array from a slice using an allocator. |
makeSlice | Allocates a slice using an allocator. |
makeUninitSlice | Allocates an uninitialized slice using an allocator. |
Function Name | Description |
---|---|
stdcSlice | Allocates a slice copy using core.stdc.stdlib.malloc |
stdcUninitSlice | Allocates an uninitialized slice using core.stdc.stdlib.malloc. |
stdcFreeSlice | Frees memory using core.stdc.stdlib.free |
Function Name | Description |
---|---|
uninitAlignedSlice | Allocates an uninitialized aligned slice using GC. |
stdcUninitAlignedSlice | Allocates an uninitialized aligned slice using CRuntime. |
stdcFreeAlignedSlice | Frees memory using CRuntime |
2020 Ilya Yaroshenko, Kaleidic Associates Advisory Limited, Symmetry Investments
This is a submodule of mir.ndslice.
It contains allocation utilities.