1. 27 Dec, 2008 1 commit
    • Liam Healy's avatar
      Updated tests; all pass · 64fea6a9
      Liam Healy authored
      Fixes to some definitions 
      lognormal, discrete: use #'mpointer
      lu: new syntax for making array
      quasi: order of arguments fixed in make-quasi-random-number-generator
      sorting: syntax to make combination
      All tests have been regenerated because syntax for arrays etc. has
      changed.  Visually inspected that results match previous check in.
      64fea6a9
  2. 26 Dec, 2008 1 commit
    • Liam Healy's avatar
      New class foreign-array, new names: marray, make-marray, mobject.lisp · 7c66d57b
      Liam Healy authored
      New class foreign-array represents foreign (C) arrays, without GSL or
      mobject superclass.  New class name 'marray was 'gsl-data,
      representing arrays in GSL.  These objects are made by #'make-marray,
      formerely #'make-array*.  New file names: init/mobject.lisp was
      init/gsl-objects.lisp and data/marray.lisp was data/data.lisp.
      7c66d57b
  3. 01 Dec, 2008 1 commit
    • Liam Healy's avatar
      GSL array making with make-array* and #m · 83cd8040
      Liam Healy authored
      GSL arrays are garbage-collected objects, and so can be made like any
      other lisp object; they do not need to be make inside a wrapper form.
      #m is a macro which makes them; it expands to a #'make-array* call.
      Examples and usage ported to this new form.  Compiled only; not tested
      yet.  No effort to port to non-native implementation yet; tests as
      expanded in the tests/ directory are not ported yet.
      83cd8040
  4. 29 Nov, 2008 1 commit
    • Liam Healy's avatar
      Combinations are garbage-collected; restore floating-point and mathematical · 59f80be4
      Liam Healy authored
      Redefine #'alloc-gsl-struct as a generic function and define a method
      specifically for combinations.  Define #'native-pointer in
      defmfun.lisp with a new function #'native-pointer-protect made from
      its body left in data.lisp, so that now floating-point and
      mathematical can be compiled and loaded as defined in the asd file.
      Use :pointer for foreign argument types instead of gsl-vector-c.
      59f80be4
  5. 28 Nov, 2008 1 commit
    • Liam Healy's avatar
      Native arrays do not need wrapper · 9b1ed35d
      Liam Healy authored
      Native arrays are now completely dynamic, i.e., they are garbarge
      collected and there is no need for any kind of wrapper, because the
      with-pinned-objects is wrapped at the defmfun level.  Most tests pass
      on SBCL, but there are still a number that fail.  The GSL parts are
      always present; there is potentially unnecessary allocation of all
      GSL-required structs at creation time, which might merit some
      investigation for a more just-in-time creation procedure.  Potential
      problems on non-native implementations completely uninvestigated.
      9b1ed35d
  6. 16 Nov, 2008 1 commit
    • Liam Healy's avatar
      Removed dependence on FFA and iterate · c561b4d5
      Liam Healy authored
      By incorporating a few definitions modified from Tamas Papp's FFA
      directly into GSLL, there is no dependence anymore on FFA separately.
      With the conversion of a few definitions, the dependency on iterate
      has therefore been eliminated also.  This compiles without errors or
      warnings on SBCL.
      c561b4d5
  7. 12 Nov, 2008 2 commits
    • Liam Healy's avatar
      Include #'make-ffa · 22f2a25f
      Liam Healy authored
      Include #'make-ffa from Tamas Papp's ffa/ffa.lisp to
      foreign-friendly.lisp and eliminate the call to
      #'match-array-element-type, so that 'element-type must be a CL type.
      Temporarily rename this to #'make-ffa*; once I no longer load or
      import ffa, it can be renamed back to #'make-ffa.
      22f2a25f
    • Liam Healy's avatar
      Delete early experiment with foreign-friendly arrays · 1e3e4a57
      Liam Healy authored
      In early experimentation with foreign-friendly arrays, I developed a
      way to directly use the foreign-friendly arrays in GSL code using raw
      C arrays.  This was successful.  Subsequently, I rewrote the gsl-data
      objects to have foreign-friendly arrays underlying them, whether they
      create raw C arrays, GSL arrays, or both, so the early experiment is
      obsolete and is deleted in this commit.
      1e3e4a57
  8. 02 Nov, 2008 1 commit
    • Liam Healy's avatar
      Complex arrays initialize correctly; pool data 8-bit correct; new array tests · 8f43fe94
      Liam Healy authored
      Complex arrays can be initialized with either reals or complexes.  If
      initialized with reals, there must be an even number.  Now created
      complex arrays are the right length and are not always zero in the
      imaginary part.  Pool data supplied in *signed-byte-pool* is between
      ±127 inclusive, instead of ±255, which is required for making
      (signed-byte 8).  Added some tests from functions in both.lisp to
      generate-tests.lisp.
      8f43fe94
  9. 14 Sep, 2008 1 commit
  10. 25 Jul, 2008 7 commits