package owl-base
An OCaml Numerical Library
Install
Dune Dependency
Authors
Maintainers
Sources
owl-0.4.0.tbz
sha256=098c648b481469761f46854c9825d52c1afdd273307658489af9c3df4ab7624b
md5=164fbec1c8025895eea703b125dd35f3
doc/owl-base/Owl_base_maths/index.html
Module Owl_base_maths
Maths: fundamental and advanced mathematical functions.
Basic functions
Helper functions
``is_inf x`` returns ``true`` if ``x`` is ``infinity`` or ``neg_infinity``.
``is_pow2 x`` return ``true`` if ``x`` is integer power of 2, e.g. 32, 64, etc.
``same_sign x y`` returns ``true`` if ``x`` and ``y`` have the same sign, otherwise it returns ``false``. Positive and negative zeros are special cases and always returns ``true``.
``is_simplex x`` checks whether ``x`` is simplex. In other words, :math:`\sum_i^K x_i = 1` and :math:`x_i \ge 0, \forall x_i \in 1,K
`.
``is_prime x`` returns ``true`` if ``x`` is a prime number. The function is deterministic for numbers below 341550071728321, then becomes probabilistic for those above. The function uses Rabin–Miller primality test.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page