numerical::buffer, the storage of the library's vectors, matrices and tensors: a std::vector whose elements constructed with no value are left uninitialised.
More...
#include <algorithm>
#include <array>
#include <atomic>
#include <complex>
#include <concepts>
#include <cstddef>
#include <cstring>
#include <limits>
#include <new>
#include <memory>
#include <type_traits>
#include <utility>
#include <vector>
#include <mutex>
Go to the source code of this file.
|
| struct | numerical::detail::thread_release_steps |
| | The calling thread's steps that empty the workspaces it keeps between calls, each registered by the workspace when the thread first makes it (on_release), and their count. More...
|
| |
| class | numerical::detail::kept_blocks< Alignment, Places, Largest > |
| | Blocks freed and kept for the next buffer that fits one: a fresh block's pages are each faulted in and zeroed by the system at their first write, on the thread that writes it (glibc hands a large freed block back to the system unless the next request is of its very size; macOS's allocator likewise), where a kept block's are already in place. Places blocks at most, each under Largest bytes, the newest kept: a block freed while every place is taken frees the one kept longest. The first allocation one fits, with no more than half of it unused, takes it. Blocks aligned on Alignment. More...
|
| |
| struct | numerical::detail::kept_blocks< Alignment, Places, Largest >::block |
| |
| struct | numerical::detail::default_init_allocator< T > |
| | The allocator of numerical::buffer. An element constructed with no value is default-initialised, so a double keeps whatever its memory held, where std::allocator zeroes it; one constructed with a value is constructed from it. A result written in full is then written once, by the threads that compute it, not zeroed first on one of them (a product of order 512 on eight arm64 threads spent a fifth of its time in that zeroing). More...
|
| |
| struct | numerical::detail::default_init_allocator< T >::rebind< U > |
| | The allocator of another element type, as std::allocator_traits rebinds it. More...
|
| |
|
| using | numerical::detail::kept_page_blocks = kept_blocks< std::size_t {4096}, 4, kept_pages_largest > |
| | The blocks of 4 KiB pages of default_init_allocator, from kept_pages_least bytes: four, each under kept_pages_largest.
|
| |
| template<typename T > |
| using | numerical::buffer = std::vector< T, detail::default_init_allocator< T > > |
| | The storage of vector, matrix and tensor, namely a std::vector whose buffer<T>(n) and resize(n) leave a double or a complex number uninitialised, for a result about to be written in full. buffer<T>(n, T {}) zeroes, as std::vector<T>(n) does.
|
| |
numerical::buffer, the storage of the library's vectors, matrices and tensors: a std::vector whose elements constructed with no value are left uninitialised.
Definition in file buffer.hpp.
◆ NUMERICAL_OUT_OF_LINE
| #define NUMERICAL_OUT_OF_LINE [[gnu::noinline]] |