gsll.asd 16.4 KB
Newer Older
1 2
;; Definition of GSLL system 
;; Liam Healy
3
;; Time-stamp: <2016-08-06 10:41:51EDT gsll.asd>
4
;;
5
;; Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013, 2015, 2016 Liam M. Healy
6 7 8 9 10 11 12 13 14 15 16 17 18 19
;; Distributed under the terms of the GNU General Public License
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
20

21
(eval-when (:compile-toplevel :load-toplevel :execute)
22
  (asdf:oos 'asdf:load-op :cffi-libffi)) ; loads cff-grovel too, needed here
Liam Healy's avatar
Liam Healy committed
23

24
(asdf:defsystem #:gsll
25
  :name "GSLL"
26 27 28
  :description "GNU Scientific Library for Lisp."
  :version "0"
  :author "Liam M. Healy"
Liam Healy's avatar
Liam Healy committed
29
  :licence "GPL v3"
30
  :defsystem-depends-on (#:cffi-grovel)
Liam M. Healy's avatar
Liam M. Healy committed
31
  :depends-on (#:foreign-array
32 33 34
	       #:cffi-grovel
	       #:trivial-garbage
	       #:alexandria
35
	       #:metabang-bind
36 37
	       #:lisp-unit
	       #:trivial-features)
38
  :components
39
  ((:module init
40 41 42
    :components
    ((:file "init")
     (cffi-grovel:grovel-file
43
      "libgsl" :pathname #+unix "libgsl-unix" #+windows "libgsl-unix"
44 45
	       :depends-on ("init"))
     (:file "gsl-version" :depends-on ("init"))
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
     (:file "utility" :depends-on ("init"))
     (:file "forms" :depends-on ("init"))
     (:file "conditions" :depends-on ("init" "libgsl"))
     (:file "callback-compile-defs" :depends-on ("init"))
     (:file "mobject" :depends-on ("init" "callback-compile-defs"))
     (:file "callback-included" :depends-on ("mobject"))
     (:file "callback"
      :depends-on
      ("init" "utility" "forms"
	      "callback-included"))
     (:file "types" :depends-on ("init" "libgsl"))
     (cffi-grovel:grovel-file "callback-struct"
			      :depends-on ("types" "libgsl"))
     (:file "funcallable" :depends-on ("init" "utility"))
     (:file "interface"
      :depends-on ("init" "conditions"))
     (:file "defmfun" :depends-on ("init" "forms" "interface"))
     (:file "defmfun-array"
      :depends-on ("init" "defmfun" "callback-included"))
     (:file "defmfun-single"
      :depends-on ("init" "defmfun" "mobject" "callback"))
     (:file "body-expand" :depends-on ("init" "defmfun" "mobject" "callback"))
68 69
     (:file "generate-examples" :depends-on ("init"))
     (:file "generic")))
70
   (:module floating-point
71 72 73 74
    :depends-on (init)
    :components
    ((:file "ieee-modes")
     (:file "floating-point")))
75
   (:module mathematical
76 77 78 79 80
    :depends-on (init)
    :components
    ((:file "mathematical")
     #+fsbv
     (:file "complex")))
81
   (:module data
82 83 84 85 86 87 88 89 90 91
    :depends-on (init)
    :components
    ((cffi-grovel:grovel-file "array-structs")
     (:file "foreign-array" :depends-on ("array-structs"))
     (:file "vector" :depends-on ("foreign-array" "array-structs"))
     (:file "matrix" :depends-on ("foreign-array" "vector" "array-structs"))
     (:file "both" :depends-on ("foreign-array" "vector" "matrix"))
     (:file "array-tests" :depends-on ("both"))
     (:file "permutation" :depends-on ("foreign-array" "array-structs"))
     (:file "combination" :depends-on ("foreign-array" "array-structs"))))
92
   (:file "polynomial" :depends-on (init data))
93
   (:module special-functions
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
    :depends-on (init mathematical)
    :components
    ((cffi-grovel:grovel-file "sf-result")
     (:file "return-structures" :depends-on ("sf-result"))
     (:file "airy" :depends-on ("return-structures"))
     (:file "bessel" :depends-on ("return-structures"))
     (:file "clausen" :depends-on ("return-structures"))
     (:file "coulomb" :depends-on ("return-structures"))
     (:file "coupling" :depends-on ("return-structures"))
     (:file "dawson" :depends-on ("return-structures"))
     (:file "debye" :depends-on ("return-structures"))
     (:file "dilogarithm" :depends-on ("return-structures"))
     (:file "elementary" :depends-on ("return-structures"))
     (:file "elliptic-integrals" :depends-on ("return-structures"))
     (:file "elliptic-functions" :depends-on ("return-structures"))
     (:file "error-functions" :depends-on ("return-structures"))
     (:file "exponential-functions" :depends-on ("return-structures"))
     (:file "exponential-integrals" :depends-on ("return-structures"))
     (:file "fermi-dirac" :depends-on ("return-structures"))
     (:file "gamma" :depends-on ("return-structures"))
     (:file "gegenbauer" :depends-on ("return-structures"))
     (:file "hypergeometric" :depends-on ("return-structures"))
     (:file "laguerre" :depends-on ("return-structures"))
     (:file "lambert" :depends-on ("return-structures"))
     (:file "legendre" :depends-on ("return-structures"))
     (:file "logarithm" :depends-on ("return-structures"))
     (:file "mathieu" :depends-on ("return-structures"))
     (:file "power" :depends-on ("return-structures"))
     (:file "psi" :depends-on ("return-structures"))
     (:file "synchrotron" :depends-on ("return-structures"))
     (:file "transport" :depends-on ("return-structures"))
     (:file "trigonometry" :depends-on ("return-structures"))
     (:file "zeta" :depends-on ("return-structures"))))
127
   (:file "sorting" :depends-on (init data))
128
   (:module linear-algebra
129 130 131 132 133 134 135 136 137 138 139 140 141 142
    :depends-on (init data special-functions)
    :components
    ((:file "blas1")
     (:file "blas2")
     (:file "blas3" :depends-on ("blas2"))
     (:file "matrix-generation")
     (:file "exponential")
     (:file "lu")
     (:file "qr")
     (:file "qrpt")
     (:file "svd")
     (:file "cholesky")
     (:file "diagonal")
     (:file "householder")))
143
   (:module eigensystems
144 145 146 147 148 149 150
    :depends-on (init data)
    :components
    ((:file "symmetric-hermitian")
     (cffi-grovel:grovel-file "eigen-struct")
     (:file "nonsymmetric" :depends-on ("eigen-struct"))
     (:file "generalized")
     (:file "nonsymmetric-generalized")))
151
   (:module fast-fourier-transforms
152 153 154 155 156 157 158 159 160 161 162
    :depends-on (init data)
    :components
    ((:file "wavetable-workspace")
     (:file "forward")
     (:file "backward")
     (:file "inverse")
     (:file "select-direction")
     (:file "unpack")
     (:file "discrete")
     (:file "extras")
     (:file "example")))
163
   (:module random
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
    :depends-on (init data)
    :components
    ((:file "rng-types")
     (:file "generators" :depends-on ("rng-types"))
     (:file "quasi" :depends-on ("rng-types" "generators"))
     (:file "tests" :depends-on ("rng-types"))
     (:file "gaussian" :depends-on ("rng-types"))
     (:file "gaussian-tail" :depends-on ("rng-types"))
     (:file "gaussian-bivariate" :depends-on ("rng-types"))
     (:file "exponential" :depends-on ("rng-types"))
     (:file "laplace" :depends-on ("rng-types"))
     (:file "exponential-power" :depends-on ("rng-types"))
     (:file "cauchy" :depends-on ("rng-types"))
     (:file "rayleigh" :depends-on ("rng-types"))
     (:file "rayleigh-tail" :depends-on ("rng-types"))
     (:file "landau" :depends-on ("rng-types"))
     (:file "levy" :depends-on ("rng-types"))
     (:file "gamma" :depends-on ("rng-types"))
     (:file "flat" :depends-on ("rng-types"))
     (:file "lognormal" :depends-on ("rng-types"))
     (:file "chi-squared" :depends-on ("rng-types"))
     (:file "fdist" :depends-on ("rng-types"))
     (:file "tdist" :depends-on ("rng-types"))
     (:file "beta" :depends-on ("rng-types"))
     (:file "logistic" :depends-on ("rng-types"))
     (:file "pareto" :depends-on ("rng-types"))
     (:file "spherical-vector" :depends-on ("rng-types"))
     (:file "weibull" :depends-on ("rng-types"))
     (:file "gumbel1" :depends-on ("rng-types"))
     (:file "gumbel2" :depends-on ("rng-types"))
     (:file "dirichlet" :depends-on ("rng-types"))
     (:file "discrete" :depends-on ("rng-types"))
     (:file "poisson" :depends-on ("rng-types"))
     (:file "bernoulli" :depends-on ("rng-types"))
     (:file "binomial" :depends-on ("rng-types"))
     (:file "multinomial" :depends-on ("rng-types"))
     (:file "negative-binomial" :depends-on ("rng-types"))
     (:file "geometric" :depends-on ("rng-types"))
     (:file "hypergeometric" :depends-on ("rng-types"))
     (:file "logarithmic" :depends-on ("rng-types"))
     (:file "shuffling-sampling" :depends-on ("rng-types"))))
205
   (:module statistics
206 207 208 209 210 211 212 213 214
    :depends-on (init data)
    :components
    ((:file "mean-variance")
     (:file "absolute-deviation")
     (:file "higher-moments")
     (:file "autocorrelation")
     (:file "covariance")
     ;; minimum and maximum values provided in vector.lisp
     (:file "median-percentile")))
215
   (:module histogram
216 217 218 219 220 221 222 223
    :depends-on (init linear-algebra random)
    :components
    ((:file "histogram")
     (:file "updating-accessing" :depends-on ("histogram"))
     (:file "statistics" :depends-on ("histogram"))
     (:file "operations" :depends-on ("histogram"))
     (:file "probability-distribution" :depends-on ("histogram"))
     (:file "ntuple")))
224
   (:module calculus
225 226 227 228 229 230 231 232
    :depends-on (init mathematical data random)
    :components
    ((:file "numerical-integration")
     (:file "numerical-integration-with-tables"
      :depends-on ("numerical-integration"))
     (cffi-grovel:grovel-file "monte-carlo-structs")
     (:file "monte-carlo")
     (:file "numerical-differentiation")))
233
   (:module ordinary-differential-equations
234 235 236 237 238 239 240 241
    :depends-on (init)
    :components
    ((:file "ode-system")
     (cffi-grovel:grovel-file "ode-struct")
     (:file "stepping" :depends-on ("ode-struct"))
     (:file "control")
     (:file "evolution")
     (:file "ode-example" :depends-on ("ode-system" "stepping"))))
242
   (:module interpolation
243 244 245 246 247 248 249
    :depends-on (init mathematical)
    :components
    ((:file "interpolation")
     (:file "types" :depends-on ("interpolation"))
     (:file "lookup")
     (:file "evaluation")
     (:file "spline-example" :depends-on ("types"))))
250
   (:file "chebyshev" :depends-on (init))
251
   (cffi-grovel:grovel-file "series-struct")
252
   (:file "series-acceleration" :depends-on (init mathematical "series-struct"))
253 254
   (:file "wavelet" :depends-on (init data))
   (:file "hankel" :depends-on (init data))
255
   (:module solve-minimize-fit
256 257 258 259 260 261 262 263 264 265 266 267 268
    :depends-on (init mathematical data random)
    :components
    ((:file "generic")
     (cffi-grovel:grovel-file "solver-struct")
     (:file "roots-one" :depends-on ("generic"))
     (:file "minimization-one" :depends-on ("generic"))
     (:file "roots-multi" :depends-on ("roots-one" "generic" "solver-struct"))
     (:file "minimization-multi" :depends-on ("generic"))
     (:file "linear-least-squares")
     (:file "nonlinear-least-squares"
      :depends-on ("generic" "solver-struct"))
     #+fsbv
     (:file "simulated-annealing")))
269
   (:file "basis-splines" :depends-on (init data random))
270
   (:module physical-constants
271 272 273 274 275 276 277 278 279 280
    :depends-on (init)
    :components
    ((cffi-grovel:grovel-file "mksa")
     (cffi-grovel:grovel-file "cgsm")
     (cffi-grovel:grovel-file "num")
     (:file export)))
   (:module test-unit
    :components
    ((cffi-grovel:grovel-file "machine")
     (:file "augment" :depends-on ("machine"))))
281
   (:module tests
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466
    :depends-on (test-unit)
    :components
    ((:file "absolute-deviation")
     (:file "absolute-sum")
     (:file "airy")
     (:file "autocorrelation")
     (:file "axpy")
     (:file "basis-spline")
     (:file "bernoulli")
     (:file "bessel")
     (:file "beta")
     (:file "binomial")
     (:file "blas-copy")
     (:file "blas-swap")
     (:file "cauchy")
     (:file "cdot")
     (:file "chebyshev")
     (:file "chi-squared")
     (:file "cholesky")
     (:file "clausen")
     (:file "column")
     (:file "combination")
     (:file "coulomb")
     (:file "coupling")
     (:file "correlation")
     (:file "covariance")
     (:file "dawson")
     (:file "debye")
     (:file "dilogarithm")
     (:file "dirichlet")
     (:file "discrete")
     (:file "dot")
     (:file "eigensystems")
     (:file "elementary")
     (:file "elliptic-functions")
     (:file "elliptic-integrals")
     (:file "error-functions")
     (:file "euclidean-norm")
     (:file "exponential-functions")
     (:file "exponential-integrals")
     (:file "exponential")
     (:file "exponential-power")
     (:file "fast-fourier-transform")
     (:file "fdist")
     (:file "fermi-dirac")
     (:file "flat")
     (:file "gamma")
     (:file "gamma-randist")
     (:file "gaussian-bivariate")
     (:file "gaussian")
     (:file "gaussian-tail")
     (:file "gegenbauer")
     (:file "geometric")
     (:file "givens")
     (:file "gumbel1")
     (:file "gumbel2")
     (:file "hankel")
     (:file "higher-moments")
     (:file "histogram")
     (:file "householder")
     (:file "hypergeometric")
     (:file "hypergeometric-randist")
     (:file "index-max")
     (:file "interpolation")
     (:file "inverse-matrix-product")
     (:file "laguerre")
     (:file "lambert")
     (:file "landau")
     (:file "laplace")
     (:file "legendre")
     (:file "levy")
     (:file "linear-least-squares")
     (:file "logarithmic")
     (:file "logarithm")
     (:file "logistic")
     (:file "lognormal")
     (:file "lu")
     (:file "mathematical")
     (:file "mathieu")
     (:file "matrix-div")
     (:file "matrix-max-index")
     (:file "matrix-max")
     (:file "matrix-mean")
     (:file "matrix-min")
     (:file "matrix-min-index")
     (:file "matrix-minmax-index")
     (:file "matrix-minmax")
     (:file "matrix-sub")
     (:file "matrix-add")
     (:file "matrix-mult")
     #+fsbv (:file "matrix-product-hermitian")
     (:file "matrix-product")
     (:file "matrix-product-nonsquare")
     (:file "matrix-product-symmetric")
     (:file "matrix-product-triangular")
     (:file "matrix-set-all")
     (:file "matrix-set-zero")
     (:file "matrix-standard-deviation")
     (:file "matrix-standard-deviation-with-fixed-mean")
     (:file "matrix-standard-deviation-with-mean")
     (:file "matrix-swap")
     (:file "matrix-transpose-copy")
     (:file "matrix-transpose")
     (:file "matrix-variance")
     (:file "matrix-variance-with-fixed-mean")
     (:file "matrix-variance-with-mean")
     (:file "median-percentile")
     (:file "minimization-one")
     (:file "minimization-multi")
     (:file "monte-carlo")
     (:file "multinomial")
     (:file "negative-binomial")
     (:file "nonlinear-least-squares")
     (:file "ntuple")
     (:file "numerical-differentiation")
     (:file "numerical-integration")
     (:file "ode")
     (:file "pareto")
     (:file "permutation")
     (:file "poisson")
     (:file "polynomial")
     (:file "power")
     (:file "psi")
     (:file "qr")
     (:file "qrpt")
     (:file "quasi-random-number-generators")
     (:file "random-number-generators")
     (:file "rank-1-update")
     (:file "rayleigh")
     (:file "rayleigh-tail")
     (:file "roots-multi")
     (:file "roots-one")
     (:file "row")
     (:file "scale")
     (:file "series-acceleration")
     (:file "set-basis")
     (:file "setf-column")
     (:file "setf-row")
     (:file "set-identity")
     (:file "shuffling-sampling")
     (:file "sort-matrix-largest")
     (:file "sort-matrix")
     (:file "sort-matrix-smallest")
     (:file "sort-vector-index")
     (:file "sort-vector-largest-index")
     (:file "sort-vector-largest")
     (:file "sort-vector")
     (:file "sort-vector-smallest-index")
     (:file "sort-vector-smallest")
     (:file "spherical-vector")
     (:file "svd")
     (:file "swap-columns")
     (:file "swap-elements")
     (:file "swap-row-column")
     (:file "swap-rows")
     (:file "synchrotron")
     (:file "tdist")
     (:file "transport")
     (:file "trigonometry")
     (:file "vector-div")
     (:file "vector-max-index")
     (:file "vector-max")
     (:file "vector-mean")
     (:file "vector-min")
     (:file "vector-min-index")
     (:file "vector-minmax-index")
     (:file "vector-minmax")
     (:file "vector-sub")
     (:file "vector-add")
     (:file "vector-mult")
     (:file "vector-reverse")
     (:file "vector-set-all")
     (:file "vector-set-zero")
     (:file "vector-standard-deviation")
     (:file "vector-standard-deviation-with-fixed-mean")
     (:file "vector-standard-deviation-with-mean")
     (:file "vector-swap")
     (:file "vector-variance")
     (:file "vector-variance-with-fixed-mean")
     (:file "vector-variance-with-mean")
     (:file "weibull")
     (:file "zeta"))))
  :perform (asdf:test-op 
	    (o c)
	    (uiop:symbol-call :lisp-unit '#:run-tests :all :gsll)))