Return to Computer Vision Notebooks

Basics [NumExpr]



Basic functions and operations using NumExpr, NumPy and Python.

0. Installation


Installation command for anaconda and pip:

$ conda install -c anaconda numexpr

or

$ pip install numexpr

1. Evaluate


The string passed to evaluate is compiled into an object representing the expression and types of the arrays used by the function numexpr.

Lets compare the performance given vectors with different input sizes $N$.