batmat 0.0.13
Batched linear algebra routines
Loading...
Searching...
No Matches
Matrix utilities

Detailed Description

Low-level utilities for matrix storage.

Files

file  storage.hpp
 Aligned allocation for matrix storage.

Classes

struct  batmat::matrix::uninitialized_t
struct  batmat::matrix::aligned_deleter< T, A >
 Deleter for aligned memory allocated with operator new(size, align_val). More...
struct  batmat::matrix::aligned_deleter< void, A >

Functions

template<class T, class A>
auto batmat::matrix::make_aligned_unique_ptr (size_t size, A align)
 Returns a smart pointer to an array of T that satisfies the given alignment requirements.
template<class T, class A>
auto batmat::matrix::make_aligned_unique_ptr (size_t size, A align, uninitialized_t)
 Returns a smart pointer to an array of T that satisfies the given alignment requirements.

Variables

struct batmat::matrix::uninitialized_t batmat::matrix::uninitialized
 Tag type to indicate that memory should not be initialized.

Class Documentation

◆ batmat::matrix::uninitialized_t

struct batmat::matrix::uninitialized_t

Function Documentation

◆ make_aligned_unique_ptr() [1/2]

template<class T, class A>
auto batmat::matrix::make_aligned_unique_ptr ( size_t size,
A align )

#include <batmat/matrix/storage.hpp>

Returns a smart pointer to an array of T that satisfies the given alignment requirements.

Definition at line 77 of file storage.hpp.

◆ make_aligned_unique_ptr() [2/2]

template<class T, class A>
auto batmat::matrix::make_aligned_unique_ptr ( size_t size,
A align,
uninitialized_t  )

#include <batmat/matrix/storage.hpp>

Returns a smart pointer to an array of T that satisfies the given alignment requirements.

Definition at line 84 of file storage.hpp.

Variable Documentation

◆ uninitialized

struct batmat::matrix::uninitialized_t batmat::matrix::uninitialized

#include <batmat/matrix/storage.hpp>

Tag type to indicate that memory should not be initialized.

Examples
example.cpp.