• Liam M. Healy's avatar
    Dyadic functions +, -, *, / with single or sequence arguments · 208c5b18
    Liam M. Healy authored
    + All single-argument behavior should be defined in the ordinary functions.
    + All methods with sequence as one or both arguments moved to grid (because of the need to check for grids), defined by defmethods-dyadic-sequences
    + If one argument is a sequence, scalar argument is mapped to each element
    + If both arguments are sequences, elementwise map on each, so sequences have to be the same length.
    + Warning from ordinary functions if an argument is nil.
    + Tests for 1, 2, 3 arguments added/organized in [[file:~/mathematics/antik/tests/numbers.lisp::(lisp-unit:define-test%20numbers][numbers.lisp]].
    + Add test cases in antik/grid/tests/sequence.lisp for one or both argunments a sequence
    + All tests pass with antik-base only and grid systems loaded.
         #+BEGIN_SRC lisp
         (ql:quickload :lisp-unit)
         (ql:quickload :grid)
         :pa antik
         (lisp-unit:run-tests)
         NUMBERS: 40 assertions passed, 0 failed.
         SEQUENCES: 12 assertions passed, 0 failed.
         TOTAL: 52 assertions passed, 0 failed, 0 execution errors.
         #+END_SRC
    208c5b18
grid.asd 2.36 KB