Skip to content

Commit 4adba84

Browse files
committed
Revert "Add betainc C implementation (pymc-devs#798)"
This reverts commit 31bf682.
1 parent 56c30e0 commit 4adba84

File tree

2 files changed

+2
-330
lines changed

2 files changed

+2
-330
lines changed

pytensor/scalar/c_code/incbet.c

Lines changed: 0 additions & 311 deletions
This file was deleted.

pytensor/scalar/math.py

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,25 +1495,8 @@ def grad(self, inp, grads):
14951495
),
14961496
]
14971497

1498-
def c_support_code(self, **kwargs):
1499-
with open(os.path.join(os.path.dirname(__file__), "c_code", "incbet.c")) as f:
1500-
raw = f.read()
1501-
return raw
1502-
1503-
def c_code(self, node, name, inp, out, sub):
1504-
(a, b, x) = inp
1505-
(z,) = out
1506-
if (
1507-
node.inputs[0].type in float_types
1508-
and node.inputs[1].type in float_types
1509-
and node.inputs[2].type in float_types
1510-
):
1511-
return f"""{z} = BetaInc({a}, {b}, {x});"""
1512-
1513-
raise NotImplementedError("type not supported", type)
1514-
1515-
def c_code_cache_version(self):
1516-
return (1,)
1498+
def c_code(self, *args, **kwargs):
1499+
raise NotImplementedError()
15171500

15181501

15191502
betainc = BetaInc(upgrade_to_float_no_complex, name="betainc")

0 commit comments

Comments
 (0)