Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
DEMO
Loading...
Searching...
No Matches
signet::forge::DLDataType Struct Reference

DLPack data type descriptor. More...

#include <numpy_bridge.hpp>

Public Attributes

DLDataTypeCode code
 Type category (int/uint/float/bfloat)
 
uint8_t bits
 Number of bits per element (e.g. 32 for float32)
 
uint16_t lanes = 1
 Number of SIMD lanes (1 for scalar)
 

Detailed Description

DLPack data type descriptor.

Fully describes an element's bit-representation using a type code, bit width, and SIMD lane count. For scalar data (the common case), lanes is always 1.

Note
Signet only supports single-lane (scalar) types. Multi-lane types are rejected by from_dlpack_dtype().

Definition at line 65 of file numpy_bridge.hpp.

Member Data Documentation

◆ bits

uint8_t signet::forge::DLDataType::bits

Number of bits per element (e.g. 32 for float32)

Definition at line 67 of file numpy_bridge.hpp.

◆ code

DLDataTypeCode signet::forge::DLDataType::code

Type category (int/uint/float/bfloat)

Definition at line 66 of file numpy_bridge.hpp.

◆ lanes

uint16_t signet::forge::DLDataType::lanes = 1

Number of SIMD lanes (1 for scalar)

Definition at line 68 of file numpy_bridge.hpp.


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