Go to the documentation of this file. 1 #ifndef HALIDE_CONCISE_CASTS_H
2 #define HALIDE_CONCISE_CASTS_H
16 namespace ConciseCasts {
20 return cast(t, std::move(e));
25 return cast(t, std::move(e));
30 return cast(t, std::move(e));
35 return cast(t, std::move(e));
40 return cast(t, std::move(e));
45 return cast(t, std::move(e));
50 return cast(t, std::move(e));
55 return cast(t, std::move(e));
60 return cast(t, std::move(e));
65 return cast(t, std::move(e));
70 return cast(t, std::move(e));
75 return cast(t, std::move(e));
Type Float(int bits, int lanes=1)
Construct a floating-point type.
HALIDE_ALWAYS_INLINE int lanes() const
Return the number of vector elements in this type.
Expr cast(Expr a)
Cast an expression to the halide type corresponding to the C++ type T.
Types in the halide type system.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
HALIDE_ALWAYS_INLINE Type type() const
Get the type of this expression node.
Type UInt(int bits, int lanes=1)
Constructing an unsigned integer type.
Type BFloat(int bits, int lanes=1)
Construct a floating-point type in the bfloat format.
A fragment of Halide syntax.
Expr saturating_cast(Expr e)
Cast an expression to the halide type corresponding to the C++ type T.
Type Int(int bits, int lanes=1)
Constructing a signed integer type.