24 | import Compiler.LiteralRW
25 | import public Compiler.Xla.XlaData
30 | %hide Prelude.Integral
31 | %hide Prelude.Fractional
33 | export interface Primitive dtype => Num dtype where
34 | export interface Num dtype => Neg dtype where
35 | export interface Num dtype => Abs dtype where
36 | export interface Num dtype => Integral dtype where
37 | export interface Num dtype => Fractional dtype where
39 | export Num U32 where
40 | export Num U64 where
41 | export Num S32 where
42 | export Num S64 where
43 | export Num F64 where
45 | export Neg S32 where
46 | export Neg S64 where
47 | export Neg F64 where
49 | export Abs S32 where
50 | export Abs S64 where
51 | export Abs F64 where
53 | export Integral U32 where
54 | export Integral U64 where
55 | export Integral S32 where
56 | export Integral S64 where
58 | export Fractional F64 where
63 | export interface Primitive dtype => Eq dtype where
65 | export Eq PRED where
75 | interface LiteralRW dtype idr => PrimitiveRW dtype idr | dtype where
77 | export PrimitiveRW PRED Bool where
78 | export PrimitiveRW S32 Int32 where
79 | export PrimitiveRW U32 Nat where
80 | export PrimitiveRW U64 Nat where
81 | export PrimitiveRW F64 Double where