- Dec 26, 2008
-
-
Liam Healy authored
All GSL objects are full CL objects with garbage collection. There is no need to manually free the associated memory. All objects may be assigned in the normal CL way, e.g. let, so there is not #'letm macro anymore. Everything compiles cleanly in gsll, but nothing has been tested.
-
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.
-
Liam Healy authored
Didn't see this in previous checkin.
-
Liam Healy authored
Redesign #'defmobject so that a new method #'allocate is defined that calls the standard GSL allocate function for each object. Shrink the initialize-instance :after method to call #'allocate if the mpointer isn't given, and then set the finalizer. This way, an :mpointer made by something other than the allocate function may be supplied to the make-instance, and the object will be made correctly. This is used by #'clone functions in histogram and random number generators. Not compiled or tested, but macroexpansions look right.
-
- Dec 25, 2008
-
-
Liam Healy authored
Defined make-load-form method for data. For histogram and random number generators, old code has been removed. Nothing has been compiled.
-
- Dec 24, 2008
-
-
Liam Healy authored
More GSL objects now defined with defmobject; they look like they expand correctly but are not compiled.
-
Liam Healy authored
GSL objects made with defmobject and that have use at least one argument in some way for both initialization and reinitialization, or for using functions of those arguments, are accomodated with an optional argument 'arglists-function to defmobject. This should be a function that produces three arglists: for the maker, the initialization method, and the reinitialization method. The order of arguments generated for other cases is now preserved with :from-end in #'variables-used-in-c-arguments. Examples for interpolation and acceleration (lookup), still commented out.
-
- Dec 22, 2008
-
-
Liam Healy authored
Merged in minor changes from master.
-
Liam Healy authored
Redefine 'mobject from 'gsl-object. The class 'gsl-data in data.lisp is now a subclass of it, and does not explicitly have the mpointer slot, because mobject does. Adapted #'defmobject to work with objects that have no "setter" (initialization). This expands correctly for basis-splines (no setter) and hankel (setter). The basis-splines defintions rely on the new mobjects.
-
- Dec 16, 2008
-
-
Liam Healy authored
In the defmobject expansion, export the make-<class> symbol, include keywords in call to make-instance, add a docstring.
-
- Dec 15, 2008
-
-
Liam Healy authored
In gsl-objects, define a prototype defmobject which defines: - the class for the gsl object - initialize-instance :after method to correspond to GSL "alloc" and attach the finalizer, - define reinitialize-instance :after method to correspond to a setter or intialize in GSL, - define a make-<class-name> function that will be the customary user interface, and will call make-instance and possibly reinitialize-instance if defined. Worked up example in hankel.lisp. This compiles successfully and looks correct, but has not been tested.
-
Liam Healy authored
-
- Dec 14, 2008
-
-
Liam Healy authored
Add :qualifier argument to defmfun, used when methods are defined to allow qualifiers such as :after or :before. Permit &key arguments. Check the :after argument to defmfun for usage of argument variables to prevent them from being declared ignored. Note: This uses stupid-code-walk-find-variables, and is, well, stupid. These changes are all designed to permit the definition of #'initialize-instance and #'reinitialize-instance methods for GSL objects.
-
- Dec 08, 2008
-
-
Liam Healy authored
A somewhat comprhensive attempt to make sure :inputs, :outputs, and :return arguments in defmfuns match what the function is expecting and will return, so that non-native implementations will work correctly for copying, and native ones will work correctly for pinning. The :return argument now defaults to :outputs in most circumstances.
-
- Dec 07, 2008
-
-
Liam Healy authored
Define and call copy-cl-to-c and copy-c-to-cl only for non-native implementations; they include checks of the flags c-invalid and cl-invalid. Make sure synchronization is called at the right points. Make sure that flags are set at the right points and cleared after a copy. Not tested yet. Any per-function problems are likely from incorrect listing of inputs and/or outputs.
-
Liam Healy authored
Instead of making the ffa in make-array*, we now make it in the initialize-instance :after method for gsl-data. This means that subclasses (permutations, combinations) will automatically make the arrays. Rewrote make-array* so that it is just a wrapper for make-instance, computing the dimensions from the specified initial parameters. Permutations and combinations are now made with make-* functions.
-
- Dec 06, 2008
-
-
Liam Healy authored
The letm expansion definitions for arrays, permutations, and combinations has been eliminated. These objects are now made with there own functions and may be created anywhere, not necessarily inside a letm.
-
- Dec 01, 2008
-
-
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.
-
- Nov 29, 2008
-
-
Liam Healy authored
Use :pointer for arguments to GSL functions instead of gsl-matrix-c. Function #'cholesky-solvex had the wrong argument name.
-
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.
-
- Nov 28, 2008
-
-
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.
-
- Nov 23, 2008
-
-
Liam Healy authored
Using trivial-garbage to define a portable finalizer in #'alloc-gsl-struct. Removed #'free-gsl-struct; #'expand-data no longer calls #'free-gsl-struct. As in the old free-gsl-struct, the finalizer removes the gsl-vector-c or gsl-matrix-c, and the gsl-block-c if applicable. Test results are the same (1 failure for unrelated reason).
-
- Nov 17, 2008
-
-
Liam Healy authored
Started in file init/analysis.lisp some definitions that will aid in gauging how much of GSL GSLL covers. It will not normally be loaded (and depends on port system which is not required for GSLL) because it is mainly used by developers. It is not yet finished. Hash size for *gsl-symbol-equivalence* increased to reflect actual number of symbols present when GSLL is loaded. Improved documentation.
-
- Nov 16, 2008
-
-
Liam Healy authored
Renamed conditions in init/conditions.lisp and elsewhere to be more lisp like; e.g. EDOM is not 'input-domain. All tests except one pass.
-
Liam Healy authored
Tests are now separated from examples and defined in a new system gsll-tests. Change name of condition 'input-error from 'EDOM.
-
Liam Healy authored
GSL uses doubles for scalar addition and multiplication, regardless of the element type of the array, so modified the definitions of #'m*c, #'m+c accordingly.
-
Liam Healy authored
New dependency; simplified terminology.
-
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.
-
- Nov 12, 2008
-
-
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.
-
Liam Healy authored
To make terminology consistent, the "C standard" form of type, also what I call "CFFI" form, is called that instead of "FFA" in some places. Specifically, #'cl-cffi is renamed from #'cl-ffa and now the name matches the already-existing #'cffi-cl.
-
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.
-
- Nov 09, 2008
-
-
Liam Healy authored
Added tests for all array element types for BLAS2 and BLAS3. Those functions that take complex scalars as arguments will not work due to CFFI's lack of support for passing structs directly. The rank n update functions in BLAS2 gives an "Matrix, vector lengths are not conformant" error (EBADLEN), which needs to be tracked down. Therefore, none of these tests are defined in either file. Fixed arguments to C function in #'matrix-product-symmetric and #'inverse-matrix-product in BLAS3.
-
Liam Healy authored
Defined a complete set of BLAS1 tests for all element types. The duplicate Givens function and the "modified" Givens rotations, which are not explained in the GSL documentation, are excluded.
-
Liam Healy authored
Define some sorting functions for matrices, using the gsl_sort functions that work on C pointers. Define sorting tests for all element types. Update documentation to clarify lack of stride option.
-
Liam Healy authored
Define mean and variance functions for matrices as well as vectors. This required a modification to #'expand-defmfun-generic and to #'actual-array-c-type to permit the use of "both" when there is an optional argument, and thus two C argument lists. Defined tests for all unweighted functions and element types. Because there appears to be a bug in the GSL library in computing single floats, no tests have yet been defined for these functions.
-
Liam Healy authored
Create vector-only and matrix-only tests, and eliminate old comments and test definitions. Define outputs and returns for some vector and matrix functions that didn't have them.
-
Liam Healy authored
Complete set of tests on array operations that are defined for both vectors and matrices. Added documentation to generate-tests to explain how it works and why it's there. Fixed bug in #'expand-defmfun-generic that occured when both arrays are generated, due to key-args being altered.
-
- Nov 02, 2008
-
-
Liam Healy authored
For testing, both vectors and matrices can be made with #'array-default, replacing #'vector-default. The numbers in *double-float-pool* in are now double floats (with d0), and the #'make-list-from-pool coerces to the right type. In both.lisp, #'set-value and #'get-value are for vectors only, not both, because matrices require an extra index argument. Since these functions are for debugging only as the comment says, I'm writing equivalent matrix functions, and I'm not doing tests for them.
-
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.
-
- Oct 25, 2008
-
-
Liam Healy authored
All remaning tests are now defined with save-test, and the LISP-UNIT:DEFINE-TEST has been eliminated from the definition files, except for arrays.
-