rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
rexlib::array_descriptor Class Reference

Description of the memory representation of a multidimensional array. More...

#include <rexlib/core/ndarray/array_descriptor.hpp>

Public Member Functions

 array_descriptor () noexcept
 Default construct the descriptor with an empty layout and unknown numerical type.
 
 array_descriptor (strided_layout layout, numerical_type data_type) noexcept
 Construct a descriptor from its components.
 
 array_descriptor (const array_descriptor &other)
 
 array_descriptor (array_descriptor &&other) noexcept
 
array_descriptor & operator= (const array_descriptor &other)
 
array_descriptor & operator= (array_descriptor &&other) noexcept
 
std::size_t hash () const noexcept
 Get the hash value for this descriptor.
 
const strided_layout & get_layout () const noexcept
 Get the layout of the array.
 
numerical_type get_data_type () const noexcept
 Get the data type of the array.
 

Friends

bool operator== (const array_descriptor &lhs, const array_descriptor &rhs) noexcept
 
bool operator!= (const array_descriptor &lhs, const array_descriptor &rhs) noexcept
 

Detailed Description

Description of the memory representation of a multidimensional array.

This class represents the (strided_layout, numerical_type) pair that defines the data interpretation on a multidimensional array.

See also
array

Constructor & Destructor Documentation

◆ array_descriptor()

rexlib::array_descriptor::array_descriptor ( strided_layout  layout,
numerical_type  data_type 
)
noexcept

Construct a descriptor from its components.

Parameters
layoutThe layout.
data_typeThe numerical type.

Member Function Documentation

◆ get_data_type()

numerical_type rexlib::array_descriptor::get_data_type ( ) const
noexcept

Get the data type of the array.

Returns
numerical_type The numerical type.

◆ get_layout()

const strided_layout & rexlib::array_descriptor::get_layout ( ) const
noexcept

Get the layout of the array.

Returns
const strided_layout& The layout.

◆ hash()

std::size_t rexlib::array_descriptor::hash ( ) const
noexcept

Get the hash value for this descriptor.

Returns
std::size_t The hash value.

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