Struct radex::TensorInfo¶
template <typename T>
ClassList > radex > TensorInfo
The result of reading a tensor: its shape and flattened element data.
#include <client_base.hpp>
Public Attributes¶
| Type | Name |
|---|---|
| std::vector< T > | data The tensor's elements in row-major (C) order. |
| std::vector< detail::MetaInt > | dims The tensor's dimensions, outermost first. |
Public Functions¶
| Type | Name |
|---|---|
| TensorInfo (const T * data, detail::MetaInt n_elements, const detail::MetaInt * dims, detail::MetaInt n_dims) |
|
| TensorInfo (const TensorInfo & other) = delete |
|
| TensorInfo (TensorInfo && other) = default |
|
| TensorInfo & | operator= (const TensorInfo & other) = delete |
| TensorInfo & | operator= (TensorInfo && other) = default |
| ~TensorInfo () = default |
Public Attributes Documentation¶
variable data¶
The tensor's elements in row-major (C) order.
variable dims¶
The tensor's dimensions, outermost first.
Public Functions Documentation¶
function TensorInfo [⅓]¶
inline radex::TensorInfo::TensorInfo (
const T * data,
detail::MetaInt n_elements,
const detail::MetaInt * dims,
detail::MetaInt n_dims
)
function TensorInfo [⅔]¶
function TensorInfo [3/3]¶
function operator=¶
function operator=¶
function ~TensorInfo¶
The documentation for this class was generated from the following file include/radex/client_base.hpp