Skip to content
Snippets Groups Projects
  1. Jan 10, 2011
  2. Aug 23, 2010
    • Liam Healy's avatar
      Fix FFT to actually do something, but comment out because of failures · b7859a14
      Liam Healy authored
      The FFT tests were testing nothing of consequence, just that NIL was
      equal to NIL, because it was looking at the result of (reset-urand)
      and then three non-existent multiple values.  This is now fixed, so
      that fft-*-result-check actually binds the results of the
      calculations.  Also, single-float tests are referenced to
      +sgl-epsilon+ and not +dbl-epsilon+.  However, for
      (all-fft-test-forms 9 3 (64 99)), many tests fail:
      FAST-FOURIER-TRANSFORM: 235 assertions passed, 55 failed.
      so the tests are commented out.
      b7859a14
  3. Jul 21, 2010
    • Liam M. Healy's avatar
      Update status.text, last element of list · 4533e1be
      Liam M. Healy authored
      Update status.text mostly be removing obsolete information without
      replacing it with current information.  Use alexandria:lastcar for the
      last element of list so I do not use private definitions (non-loaded
      source).
      4533e1be
  4. Jul 07, 2010
  5. Jun 30, 2010
  6. Jun 02, 2010
    • Liam Healy's avatar
      Fix assert-to-tolerance; remaining exponential-function tests ported · c26f7f8e
      Liam Healy authored
      The macro #'assert-to-tolerance was not correct but now maps to
      sf-check-results.  The order of arguments in the sf-frac-diff call in
      sf-check-single has reversed to match test_sf_check_result in the GSL
      code.  The remaining exponential-function tests have been ported
      except for the one involving gsl_sf_exprel_n_CF_e which hasn't been
      ported.  All the tests except one pass.
      c26f7f8e
  7. Jun 01, 2010
    • Liam M. Healy's avatar
      Fix argument order, optional error estimate for tests · 0f161980
      Liam M. Healy authored
      Fixed the argument order to an exponential-functions test.  Error
      estimates used in special function calculations are optional in
      sf-check-results.  There is an exponential-functions test which fails
      even though it is identical to a GSL test; commented out.
      0f161980
    • Liam Healy's avatar
      Fix return from #'exp-err-scaled, rename/move test macros · 6f686bab
      Liam Healy authored
      The return value from #'exp-err-scaled should be sf-result-e10, now
      fixed.  Test macros renamed, made to match their corresponding GSL
      versions better, and moved to augment.lisp.  Some of the GSL
      exponential function tests are now ported, and two fail.
      6f686bab
  8. May 30, 2010
  9. May 28, 2010
  10. May 27, 2010
  11. May 26, 2010
  12. May 24, 2010
  13. May 23, 2010
    • Liam Healy's avatar
      Simplified paths to the foreign libraries; use gsl-config for header · 610e8dc2
      Liam Healy authored
      The paths to the foreign libraries have been simplified, making use of
      CFFI's statement "Most, if not all, Lisps supported by CFFI have a
      reasonable default search algorithm for foreign libraries."
      Therefore, the paths have been eliminated.  If they need to be added,
      this should be done by modifying the variable
      cffi:*foreign-library-directories*.  The header files location set
      with cc-flags for Darwin has been changed to use (gsl-config "--cflags").
      610e8dc2
  14. May 22, 2010
    • Liam Healy's avatar
      Added tests from GSL for more random distributions · a5476401
      Liam Healy authored
      Added chi-squared (which was not loaded at all), exponential,
      exponential-power, fdist, gamma-randist, tdist.  Introduced new macros
      assert-posinf and assert-neginf to check for expected infinite
      results.  Improved the automatic test converter and noted its known
      failings.
      a5476401
    • Liam Healy's avatar
      Replace random/gaussian tests with GSL tests · e9017ff3
      Liam Healy authored
      The tests for #'ugaussian-p, #'ugaussian-q, #'ugaussian-pinv,
      #'ugaussian-qinv are automatically converted from the GSL tests
      instead of converted from the examples.
      e9017ff3
    • Liam Healy's avatar
      Convert GSL test file to a list of CL forms · 14968147
      Liam Healy authored
      Convert the cdf/test.c GSL test file to a list of CL forms.  This
      requires cl-ppcre and iterate, and is not normally loaded with either
      gsll or gsll-tests.
      14968147
    • Liam Healy's avatar
      New macro assert-to-tolerance and constants defining tolerances · 039d1089
      Liam Healy authored
      Introduced a new macro #'assert-to-tolerance to be used in
      lisp-unit:define-test forms that takes three arguments: form
      expected-value tolerance.  This replaces test-tol6 that was defined in
      tdist.lisp.  Defined the tolerance constants +test-tol6+ the exact
      same way as GSL, but grovelling machine.h where GSL_DBL_EPSILON is
      defined.
      039d1089
  15. Dec 27, 2009
  16. Nov 17, 2009
    • Liam Healy's avatar
      Split fft-noise test into FFT and DFT; test generation with supplied answer · 999255fe
      Liam Healy authored
      The FFT noise test test-fft-noise calls a new split-out function
      forward-fft-rc as well as the DFT "answer".  In preparation for the
      generation of the test files, several functions in generate-tests.lisp
      have been modified to accept a known answer, in lieu of evaluating the
      form and saving that as the reference.
      999255fe
  17. Apr 30, 2009
  18. Apr 16, 2009
    • Liam Healy's avatar
      Tests marrays directly · 64a0b6c2
      Liam Healy authored
      Thanks to Malcolm Reynolds and Tom Hermann, lisp-unit:numerical-equal
      is now a generic function, so in the new file test-unit/augment.lisp,
      a method has been defined to work on marrays.  This now permits the
      direct comparison in tests of marrays, rather than looking at their CL
      equivalent with cl-array.  So far the only test changed is
      vector-add.
      64a0b6c2
  19. Mar 17, 2009
  20. Mar 08, 2009
    • Liam Healy's avatar
      Use tmh's lisp-unit definitions instead of old · f1dfef7b
      Liam Healy authored
      Incorporated tmh's lisp-unit definitions he posted to
      http://paste.lisp.org/display/76579 in preference to the former
      definitions in additional-definitions.lisp.  He took some of those
      ideas and incorporated them with his own.  This produces some
      mysterious errors not seen before when run on both SBCL and CCL
      (different errors for each).
      
      The plan is to spin off lisp-unit as a separate system which will just
      be loaded by gsll-tests.
      f1dfef7b
  21. Jan 27, 2009
    • Liam Healy's avatar
      Non-native and :callback-toplevel-only fixes · 86da4ec7
      Liam Healy authored
      Fixed several bugs that affected non-native implementations, where
      :inputs, :outputs, or both were not properly declared.  According to
      the CFFI manual, "Portability note: defcallback will not work
      correctly on some Lisps if it's not a top-level form." Evidently, this
      includes Clozure CL, so a new symbol :callback-toplevel-only has been
      pushed onto *features* if openmcl.  This changes examples with
      callbacks to define the callbacks in a separate defparameter rather
      than in-line when the mobject is made of the function is called.  As a
      result of both these changes, the only errors left in CCL tests were
      ones seen previously.  
      CCL 64: TOTAL: 1259 assertions passed, 3 failed, 0 execution errors.
      SBCL 64: TOTAL: 1257 assertions passed, 5 failed, 0 execution errors.
      86da4ec7
  22. Jan 04, 2009
    • Liam Healy's avatar
      Elementwise array operations named "elt" · 4bfa337d
      Liam Healy authored
      GSL functions that operate from one corresponding array elements and
      then overwrite the first array, as well as those that operate on each
      element of an array with a scalar, are now named starting with "elt",
      as in "elt+"; formerely they started with "m".  This is to reinforce
      the idea that they are not generally a mathematical solution to
      algebraic problems, just elementwise operations.  The scalar
      operations (addition, multiplication) are methods of elt+ and elt* as
      well. Test results 64 bit:
      SBCL: TOTAL: 1223 assertions passed, 5 failed, 0 execution errors.
      CCL: TOTAL: 1228 assertions passed, 0 failed, 0 execution errors.
      4bfa337d
  23. Dec 27, 2008
    • Liam Healy's avatar
      Set mpointer vlaue, show relevant .h file; non-int return for reinitialize-instance · 8a0ac730
      Liam Healy authored
      In defmobject, set the mpointer value if #'allocate is being called.
      For each file that defines a defmobject, I put a comment at the top
      showing the relevant GSL header file.  For generators and quasi, the
      (re)initializing function returns void and not an :int, so that is
      changed in the defmobject definition, which now permits a list of two
      elements in initialize-suffix, with the second element indicating the
      :c-return.
      8a0ac730
  24. Nov 16, 2008
Loading