neurolang.frontend.frontend_extensions module

class neurolang.frontend.frontend_extensions.NumpyFunctionsMixin

Bases: object

This Mixin adds common mathematical functions in numpy to a NeurolangFrontend instance’s DatalogProgram.

The constant_X fields will be made available as functions to the frontend.

Methods

constant_cos(x, /[, out, where, casting, ...])

constant_exp(x, /[, out, where, casting, ...])

constant_log(x, /[, out, where, casting, ...])

constant_log10(x, /[, out, where, casting, ...])

constant_sin(x, /[, out, where, casting, ...])

constant_tan(x, /[, out, where, casting, ...])

constant_cos(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = C{<ufunc 'cos'>: typing.Callable[[float], float]}
constant_exp(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = C{<ufunc 'exp'>: typing.Callable[[float], float]}
constant_log(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = C{<ufunc 'log'>: typing.Callable[[float], float]}
constant_log10(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = C{<ufunc 'log10'>: typing.Callable[[float], float]}
constant_sin(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = C{<ufunc 'sin'>: typing.Callable[[float], float]}
constant_tan(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = C{<ufunc 'tan'>: typing.Callable[[float], float]}