Special Functions

Information Theory functions

mars.tensor.special.entr

Elementwise function for computing entropy.

mars.tensor.special.rel_entr

Elementwise function for computing relative entropy.

Error function

mars.tensor.special.erf

Returns the error function of complex argument.

Convenience functions

mars.tensor.special.xlogy

Compute x*log(y) so that the result is 0 if x = 0.