Skip to content

Commit d997ba1

Browse files
Abhinav-KhotricardoV94
authored andcommitted
fix type issue
1 parent 88d9941 commit d997ba1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pytensor/scalar/math.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def c_support_code(self, **kwargs):
391391
392392
#ifndef _PSIFUNCDEFINED
393393
#define _PSIFUNCDEFINED
394-
DEVICE double _psi(ga_double x) {
394+
DEVICE double _psi(double x) {
395395
396396
/*taken from
397397
Bernardo, J. M. (1976). Algorithm AS 103:
@@ -414,8 +414,8 @@ def c_support_code(self, **kwargs):
414414
}
415415
416416
// Use reflection formula
417-
ga_double pi_x = M_PI * x;
418-
ga_double cot_pi_x = cos(pi_x) / sin(pi_x);
417+
double pi_x = M_PI * x;
418+
double cot_pi_x = cos(pi_x) / sin(pi_x);
419419
return _psi(1.0 - x) - M_PI * cot_pi_x;
420420
}
421421

0 commit comments

Comments
 (0)