Changelog
Source:NEWS.md
tengen 0.3.0
- breaking: the
DataTypehierarchy (BooleanType(),IntegerType(),UIntegerType(),FloatType()) is replaced by a single enum-styleDataTypewith one singleton object per dtype (addsf16,bf16, andc64/c128). Construct dtypes withas_dtype(). - breaking: renamed
ndims()tonaxes(). - new:
dtype_width()anddtype_category()to inspect aDataType. - new: the predicates
is_dtype_float(),is_dtype_int(),is_dtype_uint(),is_dtype_bool(), andis_dtype_complex(). -
as.character()is now a single method onDataTypeand returns the canonical dtype string;"i1"and"pred"are accepted as aliases for"bool"inas_dtype(). - The package now requires R (>= 4.2.0).
tengen 0.2.0
- Added the
DataTypeclass hierarchy:BooleanType,IntegerType,UIntegerType, andFloatTypewith==/!=comparison,print(), andas.character()methods. - Added
as_dtype()generic to convert strings (e.g."i32","f64") toDataTypeobjects. - Added
is_dtype()andassert_dtype()helpers for type checking. - Added
nelts()generic to get the number of elements of a tensor. - Renamed
TensorDataTypetoDataType.