INNER CODE UNIT · Rust

c_type

kaist-ina/BWA-MEME · RMI/rmi_lib/src/models/mod.rs:65

    pub fn c_type(&self) -> &'static str {
        match self {
            KeyType::U32 => "uint32_t",
            KeyType::U64 => "uint64_t",
            KeyType::F64 => "double",
            KeyType::F512 => "cpp_bin_float_512",
            KeyType::U128 => "__uint128_t",
            KeyType::U512 => "uint512_t"
        }
    }

    pub fn to_model_data_type(self) -> ModelDataType {
        match self {
            KeyType::U32 => ModelDataType::Int,
            KeyType::U64 => ModelDataType::Int,
            KeyType::U128 => ModelDataType::Int128,
            KeyType::U512 => ModelDataType::Int512,
            KeyType::F64 => ModelDataType::Float,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…