- Dec 19, 2010
-
-
Liam Healy authored
Use new macros define-equivalent-type, defconvert, and defenumeration from FSBV.
-
- Dec 16, 2010
-
-
Liam M. Healy authored
-
- Dec 12, 2010
-
-
Liam Healy authored
-
- Dec 04, 2010
-
-
Liam Healy authored
Use fsbv:defconvert to define sf-result and sf-result-e10, and use #'fsbv:object instead of #'val, #'err, #'e10, which have been eliminated.
-
Liam Healy authored
New function values-unless-singleton will wrap the forms in 'values if there are more than one, otherwise it just returns the form. This is used in the return value(s) in the defmfun expansion (by way of body-expand) so that if the returned form returns multiple values, they all come back from the defmfunned function (note that (values (values ...)) removes only returns the first value.
-
- Nov 28, 2010
-
-
Liam Healy authored
Eliminate calls to grid:complex-to-cl because it has been eliminated; rely on fsbv:object to do the conversion. Use new function #'fsbv:converter-defined-p.
-
- Nov 27, 2010
-
-
Liam Healy authored
In cl-convert-form, use fsbv:object on foreign structs if FSBV has been loaded. Previously, the conversion of (complex single-float) was wrong because it assumed numbers were double-float; the test results for dot and cdot have been fixed.
-
Liam Healy authored
-
- Nov 25, 2010
-
-
Liam Healy authored
New macros #'maref and #'(setf maref) get and set elements of the GSL array directly from the mpointer. These are not used by users, but in the make-funcallable-form expansion of callbacks when scalarsp = T is specified. This fixes an error in the argument order in the (setf get-value) generic function that this replaces.
-
- Nov 14, 2010
-
-
Liam Healy authored
Define method grid:gref* for histograms; it was a definition of grid:gref, but with the compiler macro that turns that into grid:gref*, we need it to be a definition of grid:gref* instead. Removed the definition of +foreign-array-pointer+ and +foreign-array-type+ to the grid package.
-
- Aug 17, 2010
-
-
Liam Healy authored
-
- Aug 13, 2010
-
-
Liam M. Healy authored
Put :unix at the end of load-foreign-library list so that more specific unices like :darwin get seen first.
-
- Aug 11, 2010
-
-
Liam M. Healy authored
CLISP does not recognize that an uninterned symbol in different parts of a progn is the same; http://sourceforge.net/tracker/?func=detail&aid=836838&group_id=1355&atid=101355 Since this bug was "long-standing" the better part of a decade ago, we will assume it now has tenure and change the progn to let.
-
- Jul 20, 2010
-
-
Liam M. Healy authored
Name conditions generic-failure-1 and generic-failure-2 because CCL doesn't like the duplicate differently. Withdraw the conditionalization away of +nan+, +positive-infinity+, and +negative-infinity+ for CCL because the latest version "Version 1.6-dev-r13994M-trunk (LinuxX8664)" can handle them.
-
- Jul 16, 2010
-
-
Liam Healy authored
Copy with #'grid:copy methods and eliminate copy-to-destination and copy-making-destination. For non-grid objects, the presence or absence of destination selects different foreign functions.
-
- Jul 14, 2010
-
-
Liam Healy authored
Define get-value and (setf get-value) methods for matrices, and compute two indices when used, by making use of affi::delinearize-index. Add &rest to *defmfun-llk* so that it won't be included in the ignore list. Minor fixes to make more tests work.
-
Liam Healy authored
-
- Jul 13, 2010
-
-
Liam M. Healy authored
-
Liam M. Healy authored
Using the new function faify-form, pointers passed by GSL to callbacks are converted to foreign-array objects if scalarsp is nil. This has been tested on multidimensional minimization only so far, and works. Note that this is potentially inefficient, as each time the callback is called, new objects are made and in the callback itself any grefs involve a generic function dispatch. However, it is easier to write the callback than dealing with the raw pointer.
-
Liam Healy authored
The functions get-value and (setf get-value) are now used in #'reference-foreign-element for scalarsp. They are also used as a demonstration for vector callbacks in minimization-multi, but perhaps a better interface could be constructed.
-
- Jul 12, 2010
-
-
Liam M. Healy authored
-
- Jul 11, 2010
-
-
Liam Healy authored
-
Liam Healy authored
In reference-foreign-element for callbacks being passed scalars, use the new function gref-mpointer-form instead of grid:gref. This function expands to one of the gsl_*_get functions to directly get an element from the GSL mpointer, instead of using the foreign-array mechanism.
-
- Jul 07, 2010
-
-
Liam M. Healy authored
Do not use cl-array in tests because it isn't always available. The safer way is by doing a copy out to a new CL array.
-
- Jul 02, 2010
-
-
Liam Healy authored
-
- Jul 01, 2010
-
-
Liam Healy authored
Use #'gsl:size to call #'grid:total-size for foreign arrays, and use the former function exclusively in GSLL. Fix some more tests.
-
Liam Healy authored
-
- Jun 30, 2010
-
-
Liam Healy authored
-
Liam Healy authored
All of GSLL now compiles using foreign-array; only the copy functions have been commented out.
-
- Jun 29, 2010
-
-
Liam Healy authored
Combinations working again with foreign-array, and improved return from combination-next and combination-previous. Return value from #'success-failure is now T or NIL.
-
- Jun 28, 2010
-
-
Liam Healy authored
Set the contents of the block structure before using it in alloc-from-block. Replace the 'marray class with 'foreign-array. Quote foreign struct slots. Eliminate copy methods. Now simple operations like 'vector-reverse work.
-
- Jun 27, 2010
-
-
Liam Healy authored
Package renamed to :grid from :c-array, function renamed to 'foreign-pointer from 'c-pointer. Eliminate reference to native. Port make-marray-or-default to foreign-array.
-
- Jun 24, 2010
-
-
Liam M. Healy authored
-
- Jun 10, 2010
-
-
Liam M. Healy authored
The expansion of a foreign structure-by-value function did not substitute the foreign function name. It turns out this didn't matter because cffi::parse-name-and-options used by fsbv:defcfun simply ignored the symbol 'GSL-NAME for the foreign function name and pulled the actual name out of the symbol-name for the Lisp symbol of the function name. This fix makes it clearer in the macroexpansion however.
-
- May 23, 2010
-
-
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").
-
- Apr 20, 2010
-
-
Liam M. Healy authored
Improve the message from obsolete-gsl-version, telling the user to remove fasls and recompile after a GSL upgrade.
-
- Dec 27, 2009
-
-
Liam Healy authored
Add copyright and license information to each file, include a copy of the GPL under documentation/COPYING.
-
- Dec 26, 2009
-
-
Liam Healy authored
Some symbols that were formerly in the GSLL package and now are in c-array need to imported from that package. This only affects non-native implementation and so was discovered in trying to compile in CCL. There are still too many test failures in CCL.
-
- Dec 24, 2009
-
-
Liam Healy authored
The grid subdirectory is now the c-array system within the GSD repository, as it has no GSL-dependent definitions and is potentially useful on its own for other C libraries. There is a bare minimum mention of GSD in the documentation, which needs to be enhanced as it is required for GSLL to compile/load.
-
- Dec 21, 2009
-
-
Liam Healy authored
Define foreign-array as subclass of grid:grid with access to elements through grid:gref.
-