Skip to main content

check_static_indexing_dtype

Function check_static_indexing_dtype 

Source
pub fn check_static_indexing_dtype(
    dtype: KernelDType,
) -> Result<(), StridedError>
Expand description

Check whether a dtype has a static-indexing implementation.

§Examples

use strided_basic::{KernelDType, execution::check_static_indexing_dtype};
check_static_indexing_dtype(KernelDType::Bool).unwrap();

§Errors

Returns UnsupportedDType for unimplemented tags.