We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87384dd commit 8bc8c5eCopy full SHA for 8bc8c5e
models/call_C.jl
@@ -1,13 +1,8 @@
1
-# Get name of C standard library depending on the platform
2
-libc_name = Sys.iswindows() ? "msvcrt.dll" :
3
- Sys.isapple() ? "libc.dylib" :
4
- "libc.so.6"
5
-
6
@model function call_C(y = 0.0)
7
x ~ Normal(0, 1)
8
9
# Call C library abs function
10
- x_abs = @ccall libc_name.fabs(x::Cdouble)::Cdouble
+ x_abs = @ccall fabs(x::Cdouble)::Cdouble
11
12
y ~ Normal(0, x_abs)
13
end
0 commit comments