- Jul 13, 2010
-
-
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 08, 2010
-
-
Liam Healy authored
Fix polynomial and numerical-integration tests by initializing with double-floats.
-
- 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.
-
Liam M. Healy authored
-
Liam Healy authored
The generic function #'copy now needs a keyword argument for the destination :grid-type. Eliminate unnecessary copy tests; these are better tested in grid as they didn't use any GSL functions.
-
Liam Healy authored
Since the copy generic function has been established in grid, eliminate copy-to-destination for arrays, mvectors, matrices.
-
- 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
In the tests, complex arrays were initialized with reals (giving real, imaginary in sequence), but that is no longer permitted, so these were converted into complex.
-
Liam Healy authored
-
- Jun 30, 2010
-
-
Liam M. Healy authored
Correct setting of mpointer #'make-foreign-array-from-mpointer and move foreign-metadata to foreign-array.
-
Liam M. Healy authored
For combinations, name the foreign slot 'range instead of 'choice-of and eliminate the separate CL slot and method, using #'combination-range instead.
-
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.
-
Liam M. Healy authored
Remove change-class for permutation and combination because now initialize-instance for grid:foreign-array will not try to change the class from what is being made in make-instance.
-
Liam Healy authored
-
Liam Healy authored
-
- Jun 28, 2010
-
-
Liam M. Healy authored
Eliminate contents-from-pointer because GSLL won't use bare pointers anymore.
-
Liam Healy authored
-
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.
-
Liam Healy authored
New function #'make-foreign-array-from-gsl-pointer allows construction of a foreign-array with the appropriate metadata when given the mpointer. It has not been tested. Its main use will be in GSL routines that create their own GSL vector (or matrix); previously those were copied from the pointer, now they are just wrapped with the appropriate GSLL object. File renamed to "foreign-array.lisp" from "marray.lisp".
-
Liam Healy authored
Eliminate marray class and use new foreign-array subclasses. Porting of code in this file partially complete.
-
- Jun 26, 2010
-
-
Liam Healy authored
-
- Jun 25, 2010
-
-
Liam 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.
-
- Jun 08, 2010
-
-
Liam M. Healy authored
Dependencies line for clbuild is now fixed; tests count and source.
-
- Jun 06, 2010
-
-
Liam Healy authored
The :cl-array argument to make-marray is obsolete and has been eliminated; the :data argument has replaced it (the argument must have been make by c-array:make-ffa). Added initial-element and initial-contents arguments to grid:make-grid-data method.
-
- Jun 02, 2010
-
-
Liam M. Healy authored
-
Liam M. Healy authored
The gamma tests that were failing under Debian Lenny/SBCL 1.0.18/GSL 1.11 pass under Debian squeeze/SBCL 1.0.36.25/GSL 1.14, so they are now uncommented. The exponential-function test that failed in the first case passes in the second. TOTAL: 4062 assertions passed, 2 failed, 0 execution errors.
-
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.
-
- Jun 01, 2010
-
-
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.
-
Liam M. Healy authored
-
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.
-
- May 30, 2010
-
-
Liam Healy authored
-