MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::memory_space::host Struct Reference

Host memory: MTL5's default, over-aligned operator new and delete. More...

#include <memory_space.hpp>

Public Types

template<typename T>
using handle_type = T*

Static Public Member Functions

template<typename T>
static T * allocate (std::size_t n)
template<typename T>
static void deallocate (T *p, std::size_t n) noexcept

Static Public Attributes

static constexpr bool host_accessible = true
static constexpr bool device_accessible = false
static constexpr const char * name = "host"

Detailed Description

Host memory: MTL5's default, over-aligned operator new and delete.

Member Typedef Documentation

◆ handle_type

template<typename T>
using mtl::memory_space::host::handle_type = T*

Member Function Documentation

◆ allocate()

template<typename T>
T * mtl::memory_space::host::allocate ( std::size_t n)
inlinestaticnodiscard

◆ deallocate()

template<typename T>
void mtl::memory_space::host::deallocate ( T * p,
std::size_t n )
inlinestaticnoexcept

Member Data Documentation

◆ device_accessible

bool mtl::memory_space::host::device_accessible = false
staticconstexpr

◆ host_accessible

bool mtl::memory_space::host::host_accessible = true
staticconstexpr

◆ name

const char* mtl::memory_space::host::name = "host"
staticconstexpr

The documentation for this struct was generated from the following file: