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

◆ element_bytes()

size_t MayaFlux::Kakshya::TensorDType::element_bytes ( ) const
inlinenodiscardconstexprnoexcept

Bytes of one element, zero for a sub-byte type.

Definition at line 101 of file TensorDType.hpp.

101{ return is_sub_byte() ? 0 : element_bits() / 8; }
constexpr size_t element_bits() const noexcept
Bits of one element, lanes included.
constexpr bool is_sub_byte() const noexcept
Whether one element is not a whole number of bytes.

References element_bits(), and is_sub_byte().

Referenced by MayaFlux::Kakshya::TensorData::copy_of().

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