aboutsummaryrefslogtreecommitdiff
path: root/src/utils.sc
AgeCommit message (Expand)Author
2021-05-07Add rtol? predicate.•••* src/utils.sc (rtol?): New function. * include/utils.h (rtol_p): Declare it. Arun Isaac
2021-02-26Add copyright and license headers for all files.•••* include/extent-sampling.h, include/gaussian-nd-random.h, include/integrands.h, include/nd-random.h, include/oracles.h, include/utils.h, src/extent-sampling.sc, src/gaussian-nd-random.sc, src/integrands.sc, src/macros/macros.sc, src/nd-random.sc, src/oracles.sc, src/utils.sc, CMakeLists.txt, pre-inst-env.in: Add copyright and license headers. Arun Isaac
2021-02-23Implement the lower incomplete gamma function as a scheme wrapper.•••With this change, the wrapper around the gsl lower incomplete gamma function is directly in scheme. Earlier, there was one layer of wrapping in C which needed to be wrapped again in scheme. * include/utils.h (lower_incomplete_gamma): Delete function. * src/utils.sc (lower-incomplete-gamma): Delete function. * scm/extent-sampling/wrap.scm (lower-incomplete-gamma): New function. Arun Isaac
2021-02-10Remove unnecessary solver type variable.•••* src/utils.sc (with-root-fsolver): Rewrite without a temporary solver type variable. Arun Isaac
2021-02-10Fix collision between solver type and solver type variable.•••* src/utils.sc (with-root-fsolver): Fix collision between solver type and solver type variable. Arun Isaac
2021-02-05Replace underscores in identifiers with hyphens.•••* src/utils.sc (angle-between-vectors, gaussian-cdf, bisection, bisection-rlimit): Replace underscores in identifiers with hyphens. Arun Isaac
2021-02-05Migrate C source to SC.•••sph-sc is a scheme-like S-expression syntax for C. It elements much of the pain and repetition involved in writing C syntax. * src/extent-sampling.c, src/gaussian-nd-random.c, src/nd-random.c, src/oracles.c, src/utils.c: Delete files. * src/extent-sampling.sc, src/gaussian-nd-random.sc, src/macros/macros.sc, src/nd-random.sc, src/oracles.sc, src/utils.sc: New files. * CMakeLists.txt: Generate C source files from SC source files. Arun Isaac