Common Lisp Package: CL-NUM-UTILS.ELEMENTWISE

README:

FUNCTION

Public

E* (ARGUMENT &REST MORE-ARGUMENTS)

Elementwise *.

E+ (ARGUMENT &REST MORE-ARGUMENTS)

Elementwise +.

E- (ARGUMENT &REST MORE-ARGUMENTS)

Elementwise -.

E/ (ARGUMENT &REST MORE-ARGUMENTS)

Elementwise /.

ELEMENTWISE-FLOAT-CONTAGION (&REST OBJECTS)

Return the resulting float type when objects (or their elements) are combined using arithmetic operations.

ELOG (A &OPTIONAL (BASE NIL BASE?))

Elementwise logarithm.

EMAX (OBJECT)

Elementwise MAX.

EMIN (OBJECT)

Elementwise MIN.

MACRO

Private

DEFINE-E1 (OPERATION &KEY #'(SYMBOLICATE 'E1 OPERATION) (DOCSTRING (FORMAT NIL Univariate elementwise ~A. OPERATION)))

Define an univariate elementwise operation.

DEFINE-E2 (OPERATION &KEY #'(SYMBOLICATE 'E2 OPERATION) (DOCSTRING (FORMAT NIL Bivariate elementwise ~A. OPERATION)))

Define an univariate elementwise operation.

Undocumented

DEFINE-E& (OPERATION &KEY #'(SYMBOLICATE 'E OPERATION) (BIVARIATE (SYMBOLICATE 'E2 OPERATION)) (UNIVARIATE (SYMBOLICATE 'E1 OPERATION)) (DOCSTRING (FORMAT NIL Elementwise ~A. OPERATION)))

DEFINE-ELEMENTWISE-REDUCTION (NAME FUNCTION &OPTIONAL (DOCSTRING (FORMAT NIL Elementwise ~A. FUNCTION)))

MAPPING-ARRAY ((REF ARRAY &REST OTHER) FORM)

GENERIC-FUNCTION

Public

E1- (A)

Univariate elementwise -.

E1/ (A)

Univariate elementwise /.

E2* (A B)

Bivariate elementwise *.

E2+ (A B)

Bivariate elementwise +.

E2- (A B)

Bivariate elementwise -.

E2/ (A B)

Bivariate elementwise /.

ECONJUGATE (A)

Univariate elementwise CONJUGATE.

EEXP (A)

Univariate elementwise EXP.

EEXPT (A B)

Bivariate elementwise EXPT.

EREDUCE (FUNCTION OBJECT &KEY KEY)

Elementwise reduce, traversing in row-major order.

ESQRT (A)

Univariate elementwise SQRT.

Private

E1LOG (A)

Univariate elementwise LOG.

E2LOG (A B)

Bivariate elementwise LOG.

ESQUARE (A)

Univariate elementwise SQUARE.