- 21 Dec, 2009 1 commit
-
-
Liam Healy authored
The generic function definition for copy-to-destination is now in grid/ and the c-array package. This will make it accessible to non-GSLL foreign library interfaces, but the new location is a bit deceptive because a new method needn't be a subclass of foreign-array.
-
- 26 Aug, 2009 1 commit
-
-
Liam Healy authored
A list argument to defmobject :initialize-suffix now means what a list argument to defmfun to defmfun c-arguments does: there are two foreign functions corresponding to the Lisp function; in this case, to reinitialize-instance. The old meaning of having the second element specify the c-return reinitialize-instance has been eliminated; instead, this information is conveyed in a new key argument :ri-c-return.
-
- 25 May, 2009 1 commit
-
-
Liam Healy authored
A new generic function #'size replaces the old ordinary functions #'size (for Chebyshev) and #'combination-size, #'permutation-size, #'rng-size, and #'mfminimizer-size.
-
- 18 Feb, 2009 1 commit
-
-
Liam Healy authored
Added +halton+, +reverse-halton+ to random/quasi.lisp. Added #'multi-linear-residuals in solve-minimize-fit/linear-least-squares.lisp. Changed +sobol+, +niederreiter2+ from *..* apparently overlooked before. #'cholesky-solve now written so that if x-spec = T, a marray is created and the solution put in it and returned. If it is NIL, the solution will replace b. This required a modification to expand-defmfun-generic to remove &aux args from the defgeneric arglist. solve-minimize-fit/linear-least-squares.lisp Specify the weight as an optional argument, unifying the weighted and unweighted functions: linear-fit, multiplier-fit, linear-mfit, linear-mfit-svd. This necessitated a change in the order of the arguments. Changed call in basis-splines.lisp.
-
- 25 Jan, 2009 1 commit
-
-
Liam Healy authored
Change optional arguments to defmobject to keyword arguments, and add :gsl-version argument that will create the maker function to signal an error if the installed version of GSL is too old.
-
- 12 Jan, 2009 1 commit
-
-
Liam Healy authored
Redefine #'copy so that it has one required argument (source) and one optional argument (destination). For marrays, create a destination using make-marray, if one was not given, and then use the memcpy functions to fill the values. For all other mobjects, copy will copy objects by calling one of two generic functions, #'copy-to-destination and #'copy-making-destination, depending on whether a destination was supplied. The former is defined if a GSL _memcpy function exists. The latter will look for a GSL _clone function, then make a CL instance with the pointer returned as mpointer. If there is no clone function, it will attempt to make a new object using make-load-form, so will fail if that method has not been defined. Added a check to defmfun that signals an error if a variable is used in the C arguments other than top-level that is not used in the CL arglist. This should not happen and is usually an indication of a typo.
-
- 27 Dec, 2008 2 commits
-
-
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.
-
Liam Healy authored
In defmobject, set the mpointer value if #'allocate is being called. For each file that defines a defmobject, I put a comment at the top showing the relevant GSL header file. For generators and quasi, the (re)initializing function returns void and not an :int, so that is changed in the defmobject definition, which now permits a list of two elements in initialize-suffix, with the second element indicating the :c-return.
-
- 26 Dec, 2008 4 commits
-
-
Liam Healy authored
GSL functions that take GSL objects as arguments must have #'mpointer called on each argument. Created a generic function #'name and changed all the *-name (or name-*) functions that acted on mobjects to this function.
-
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
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.
-
- 25 Dec, 2008 1 commit
-
-
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.
-
- 22 Dec, 2008 1 commit
-
-
Liam Healy authored
Merged in minor changes from master.
-
- 01 Dec, 2008 1 commit
-
-
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.
-
- 25 Oct, 2008 1 commit
-
-
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.
-
- 15 Sep, 2008 1 commit
-
-
Liam Healy authored
Multiple fixes to restore tests: change to #'cl-array from #'data, use #'a macro, comment out a few tests do defer repair until later. Two errors in definitions of functions in histogram/updating-accessing.lisp fixed. Some uncommented-out test failures remain.
-
- 17 Aug, 2008 1 commit
-
-
Liam Healy authored
The vector usage in random, plus a few sizet types, ported. Not tested.
-
- 25 Jul, 2008 2 commits
-
-
lhealy authored
in one place, in *type-names* for the types and in *data-class-name* for data classes, populated by #'add-data-class. Both defdata and defmfun-all use the table and so mapping between various names is consistent. The data class names are now different, *-double-float and *-single-float replaces *-double and *-single. The regression tests give the same results as before. git-svn-id: svn+ssh://common-lisp.net/project/gsll/svn/trunk@34 af03a46b-e846-0410-96e5-d5653c316fd0
-
lhealy authored
git-svn-id: svn+ssh://common-lisp.net/project/gsll/svn/trunk@26 af03a46b-e846-0410-96e5-d5653c316fd0
-
- 18 Feb, 2008 1 commit
-
-
liam authored
Rename defun-gsl, defvariable. Clean up markup and header files. :size to size make-tests and assert-numerical-equal git-svn-id: svn+ssh://pop/opt/space/mathematics/gsl/trunk@3295 a3d8a0fb-c1db-0310-ace7-a616afeb9e30
-
- 03 Feb, 2008 2 commits
-
-
liam authored
#'set-asf); minor bug fixes. git-svn-id: svn+ssh://pop/opt/space/mathematics/gsl/trunk@3282 a3d8a0fb-c1db-0310-ace7-a616afeb9e30
-
liam authored
Replaces with-gsl-object and allows the lambda list to be something other than the concatenation of the allocation and setting lambda lists. git-svn-id: svn+ssh://pop/opt/space/mathematics/gsl/trunk@3279 a3d8a0fb-c1db-0310-ace7-a616afeb9e30
-
- 01 Feb, 2008 1 commit
-
-
liam authored
git-svn-id: svn+ssh://pop/opt/space/mathematics/gsl/trunk@3278 a3d8a0fb-c1db-0310-ace7-a616afeb9e30
-
- 21 Jan, 2008 1 commit
-
-
liam authored
warnings are suppressed. git-svn-id: svn+ssh://pop/opt/space/mathematics/gsl/trunk@3274 a3d8a0fb-c1db-0310-ace7-a616afeb9e30
-
- 05 Mar, 2007 1 commit
-
-
liam authored
sorting still not resolved. Created a home page. git-svn-id: svn+ssh://pop/opt/space/mathematics/gsl/trunk@3189 a3d8a0fb-c1db-0310-ace7-a616afeb9e30
-
- 20 Feb, 2007 1 commit
-
-
liam authored
Add #'generator method. git-svn-id: svn+ssh://pop/opt/space/mathematics/gsl/trunk@3184 a3d8a0fb-c1db-0310-ace7-a616afeb9e30
-
- 01 Jan, 2007 1 commit
-
-
liam authored
Miscellaneous minor fixes. git-svn-id: svn+ssh://pop/opt/space/mathematics/gsl/trunk@3162 a3d8a0fb-c1db-0310-ace7-a616afeb9e30
-
- 17 Jul, 2006 2 commits
-
-
liam authored
git-svn-id: svn+ssh://pop/opt/space/mathematics/gsl/trunk@3125 a3d8a0fb-c1db-0310-ace7-a616afeb9e30
-
liam authored
git-svn-id: svn+ssh://pop/opt/space/mathematics/gsl/trunk@3124 a3d8a0fb-c1db-0310-ace7-a616afeb9e30
-