c++ arrayfire supported data types

Supported data types

ArrayFire provides one generic container object, the array on which functions and mathematical operations are performed. The array can represent one of many different basic data types:

  • f32 real single-precision (float)
  • c32 complex single-precision (cfloat)
  • f64 real double-precision (double)
  • c64 complex double-precision (cdouble)
  • f16 real half-precision (half_float::half)
  • b8 8-bit boolean values (bool)
  • s32 32-bit signed integer (int)
  • u32 32-bit unsigned integer (unsigned)
  • u8 8-bit unsigned values (unsigned char)
  • s64 64-bit signed integer (intl)
  • u64 64-bit unsigned integer (uintl)
  • s16 16-bit signed integer (short)
  • u16 16-bit unsigned integer (unsigned short)

Most of these data types are supported on all modern GPUs; however, some older devices may lack support for double precision arrays. In this case, a runtime error will be generated when the array is constructed.

If not specified otherwise, arrays are created as single precision floating point numbers (f32).

来源: ArrayFire: Getting Started

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值