CNum 0.2.1
CPU-optimized ML library for C++
Loading...
Searching...
No Matches
DataStructsDefs.h
Go to the documentation of this file.
1#ifndef DATA_STRUCTS_DEFS_H
2#define DATA_STRUCTS_DEFS_H
3
5
10namespace CNum::DataStructs {
11 template <typename T>
12 class Matrix;
13
14 template <typename T>
15 class ConcurrentQueue;
16
17 using ::arena_t;
18 using ::arena_view_t;
19
24 namespace Arena {
25 using ::arena_init;
26 using ::arena_malloc;
27 using ::arena_clear;
28 using ::arena_free;
29 }
30};
31
32#endif
struct arena arena_t
struct arena_view arena_view_t
Coarse-grained locking concurrent queue.
Definition ConcurrentQueue.h:23
2d array abstraction
Definition Matrix.h:43
A "mini-heap" used for thread local memory allocation.
void arena_free(arena_t *arena)
Free all memory associated with an arena.
void arena_clear(arena_t *arena)
Zero out an arena's memory.
arena_view_t arena_malloc(arena_t *arena, size_t bytes, size_t type_size)
Arena manual allocation with malloc fallback.
arena_t * arena_init(uint32_t blocks_to_allocate)
Initialize Arena.
The data structures used in CNum.
Definition ConcurrentQueue.h:8