Skip to content
  • Liam Healy's avatar
    Map marrayp, roots-one and minimization-one work · 2a96cfe3
    Liam Healy authored
    The array-type as given in the callback-argspec is either :cvector or
    :marray.  The functions list-to-arrays and list-to-array expect
    argument 'marrayps or 'marrayp which are T or NIL.  That means I need
    to map the 'marrays argument in #'call-maybe-scalar which is :marray
    or :cvector to T/NIL.  Wrote function #'marrayp to do this.
    Example in one-dimensional-root-solver-fdf
    (roots-one-example-derivative +newton-fdfsolver+ nil)
    now works; in fact all roots-one tests pass:
    (lisp-unit:run-tests roots-one)
    ROOTS-ONE: 6 assertions passed, 0 failed.
    Ported minimization-one, tests pass:
    (lisp-unit:run-tests minimization-one)
    MINIMIZATION-ONE: 2 assertions passed, 0 failed.
    2a96cfe3