MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ element_data()

const std::byte * MayaFlux::Kakshya::TensorAccess::element_data ( ) const
nodiscardnoexcept

Pointer to element zero, or nullptr for an empty tensor.

Definition at line 37 of file TensorAccess.cpp.

38{
39 if (element_count() == 0 || m_storage.empty())
40 return nullptr;
41 return m_storage.data() + m_spec.byte_offset;
42}
uint64_t element_count() const noexcept
Number of elements.
std::span< const std::byte > m_storage

References element_count(), m_spec, and m_storage.

Referenced by bytes(), and MayaFlux::Kakshya::TensorData::copy_of().

Here is the call graph for this function:
Here is the caller graph for this function: