Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
numba
GitHub Repository: numba/llvmlite
Path: blob/main/examples/floatrep.py
1154 views
1
from llvmlite.ir import Constant, FloatType, DoubleType
2
import math
3
4
print(Constant(FloatType(), math.pi))
5
print(Constant(DoubleType(), math.pi))
6
print(Constant(FloatType(), float('+inf')))
7
print(Constant(DoubleType(), float('+inf')))
8
print(Constant(FloatType(), float('-inf')))
9
print(Constant(DoubleType(), float('-inf')))
10
11