AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Namespaces | |
internal | |
lumberjack | |
mint | |
numerics | |
primal | |
quest | |
sidre | |
slam | |
slic | |
spin | |
utilities | |
Classes | |
class | Array |
Provides a generic multi-component array container. More... | |
class | StackArray |
Provides a wrapper for a compile time sized array, similar to std::array. This class is needed because NVCC doesn't caputure standard stack arrays in device lambdas. Furthermore we can't use std::array becuase it is not host-device decorated. More... | |
Typedefs | |
using | int8 = std::int8_t |
using | uint8 = std::uint8_t |
using | int16 = std::int16_t |
using | uint16 = std::uint16_t |
using | int32 = std::int32_t |
using | uint32 = std::uint32_t |
using | int64 = std::int64_t |
using | uint64 = std::uint64_t |
using | float32 = float |
using | float64 = double |
using | IndexType = int32 |
Functions | |
void | about () |
Prints info about how Axom was configured and built to stdout. More... | |
void | about (std::ostream &oss) |
Prints info about how Axom was configured and built to a stream. More... | |
Memory Management Routines | |
template<typename T > | |
T * | allocate (std::size_t n) noexcept |
Allocates a chunk of memory of type T. More... | |
template<typename T > | |
void | deallocate (T *&p) noexcept |
Frees the chunk of memory pointed to by the supplied pointer, p. More... | |
template<typename T > | |
T * | reallocate (T *p, std::size_t n) noexcept |
Reallocates the chunk of memory pointed to by the supplied pointer. More... | |
void | copy (void *dst, void *src, std::size_t numbytes) noexcept |
Copies memory from the source to the destination. More... | |
Variables | |
constexpr int | INVALID_ALLOCATOR_ID = -1 |
using axom::int8 = typedef std::int8_t |
8-bit signed integer type
using axom::uint8 = typedef std::uint8_t |
8-bit unsigned integer type
using axom::int16 = typedef std::int16_t |
16-bit signed integer type
using axom::uint16 = typedef std::uint16_t |
16-bit unsigned integer type
using axom::int32 = typedef std::int32_t |
32-bit signed integer type
using axom::uint32 = typedef std::uint32_t |
32-bit unsigned integer type
using axom::int64 = typedef std::int64_t |
64-bit signed integer type
using axom::uint64 = typedef std::uint64_t |
64-bit unsigned integer type
using axom::float32 = typedef float |
using axom::float64 = typedef double |
using axom::IndexType = typedef int32 |
|
inlinenoexcept |
Allocates a chunk of memory of type T.
[in] | n | the number of elements to allocate. |
[in] | allocator | the Umpire allocator to use (optional) |
T | the type of pointer returned. |
|
inlinenoexcept |
Frees the chunk of memory pointed to by the supplied pointer, p.
[in/out] | p a pointer to memory allocated with allocate/reallocate or a nullptr. |
Referenced by axom::spin::BVH< NDIMS, ExecSpace, FloatType >::build(), axom::numerics::jacobi_eigensolve(), axom::numerics::lu_solve(), axom::numerics::Matrix< T >::ones(), and axom::Array< double >::~Array().
|
inlinenoexcept |
Reallocates the chunk of memory pointed to by the supplied pointer.
[in] | p | pointer to memory allocated with allocate/reallocate, or a nullptr. |
[in] | n | the number of elements to allocate. |
T | the type pointer p points to. |
Referenced by axom::Array< double >::dynamicRealloc(), and axom::Array< double >::setCapacity().
|
inlinenoexcept |
Copies memory from the source to the destination.
[in/out] | dst the destination to copy to. | |
[in] | src | the source to copy from. |
[in] | numbytes | the number of bytes to copy. |
Referenced by axom::quest::InOutOctree< DIM >::generateIndex(), axom::sidre::View::getNextValidAttrValueIndex(), axom::slam::DynamicVariableRelation< PosType, ElemType >::isValid(), axom::primal::NumericArray< IndexType, NDIMS >::NumericArray(), and axom::quest::DynamicGrayBlockData::operator=().
void axom::about | ( | ) |
Prints info about how Axom was configured and built to stdout.
void axom::about | ( | std::ostream & | oss | ) |
Prints info about how Axom was configured and built to a stream.
constexpr int axom::INVALID_ALLOCATOR_ID = -1 |
Referenced by axom::sidre::View::getNode(), axom::sidre::Buffer::isDescribed(), and axom::sidre::Group::isRoot().