sparsegrad.base package¶
Submodules¶
sparsegrad.base.expr module¶
-
class
sparsegrad.base.expr.expr_base¶ Bases:
objectBase class for numpy-compatible operator overloading
It provides default overloads of arithmetic operators and methods for mathematical functions. The default overloads call abstract apply method to calculate the result of operation.
-
absolute(**kwargs)¶
-
classmethod
apply(func, args)¶ Apply DifferentiableFunction to args
-
apply1(func)¶ Apply single argument DifferentiableFunction to value
-
arccos(**kwargs)¶
-
arccosh(**kwargs)¶
-
arcsin(**kwargs)¶
-
arcsinh(**kwargs)¶
-
arctan(**kwargs)¶
-
arctanh(**kwargs)¶
-
compare(operator, other)¶
-
cos(**kwargs)¶
-
cosh(**kwargs)¶
-
exp(**kwargs)¶
-
expm1(**kwargs)¶
-
log(**kwargs)¶
-
log1p(**kwargs)¶
-
negative(**kwargs)¶
-
reciprocal(**kwargs)¶
-
sign(**kwargs)¶
-
sin(**kwargs)¶
-
sinh(**kwargs)¶
-
sqrt(**kwargs)¶
-
square(**kwargs)¶
-
tan(**kwargs)¶
-
tanh(**kwargs)¶
-
Module contents¶
Base for operator overloading