- Jul 19, 2010
-
-
Liam Healy authored
Trivial conflicts: data/array-structs.lisp init/init.lisp
-
Liam Healy authored
-
- Jul 16, 2010
-
-
Liam M. Healy authored
Most of the non-array copy and clone functions had wrong calls, wrong arguments, and/or superfluous arguments; now fixed.
-
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 15, 2010
-
-
Liam M. Healy authored
The maximum order for Mathieu array functions is the sum of the minimum order and the size, less 1. The -1 was missing but is necessary because the orders given are inclusive; without it, random memory faults occur.
-
- Jul 14, 2010
-
-
Liam M. Healy authored
1. Fix argument order in permutation-inverse test. 2. Test results for cholesky need to nest list for array contents. 3. Fix incorrect initial contents for matrix-transpose. Now the tests results on SBCL 64 bit, GSL 1.14 are the same as the master branch: TOTAL: 4014 assertions passed, 2 failed, 0 execution errors.
-
Liam Healy authored
In make-foreign-array-from-mpointer, convert category-or-rank to 'category in the symbol (in GSLL package) form, and then do cases only on the symbol.
-
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
-
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.
-