Trait arrayfire::HasAfEnum [] [src]

pub trait HasAfEnum {
    fn get_af_dtype() -> DType;
}

Types of the data that can be generated using ArrayFire data generation functions.

The trait HasAfEnum has been defined internally for the following types. We strongly suggest not to implement this trait in your program for user defined types because ArrayFire functions will only work for the following data types currently. Any such trait implementation for types other than the ones listed below will result in undefined behavior.

  • f32
  • f64
  • num::Complex<f32>
  • num::Complex<f64>
  • bool
  • i32
  • u32
  • u8
  • i64
  • u64
  • i16
  • u16

Required Methods

Implementors