COMMON: Added a GetLast() function and using it

This is used to retrieve the "last" element from a Sample.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
COMMON: Move a few comparison helper function from tests to actual lib

These functions will be required by a few library methods.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
COMMON: Added "Any" versions of a few binary functions

These versions have each element comparison results being "OR"ed,
instead of "AND"ed e.g. if any one is true, overall result is true.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
COMMON: Fixed bad use of preprocessor macros regarding SIMD

Some overloads made no sense when using the scalar code path.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
TESTS: Exposed one more comparison function

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
TESTS: Add tests for generator direct phase control

These tests show that DPW algorithms do not handle this well.
See #5.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
SCRIPTS: Add various boilerplate/sandbox code for direct phase control

This helps narrowing done the issue #5.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
SCRIPTS: Simple workaround for direct phase control prototype

Temporary fix to #5.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
GENERATORS: Implement temporary workaround for #5

This is as prototyped in Python, with regard to the vectorized
implementation.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
GENERATORS: Added a performance test for the Differentiator

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
MISC: Minor style fixes.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>