Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Selwyn Simsek
gsll
Commits
e8e3d438
Commit
e8e3d438
authored
Mar 31, 2010
by
James Wright
Committed by
Liam Healy
Apr 04, 2010
Browse files
Changed 'uniform to :uniform
parent
12db5cd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
solve-minimize-fit/simulated-annealing.lisp
View file @
e8e3d438
...
...
@@ -90,7 +90,7 @@
;;; The user-step-function should take a rng pointer, a state pointer,
;;; and a double-float, and return nothing. The rng pointer should be
;;; used in call to one of the distribution functions like
'
uniform.
;;; used in call to one of the distribution functions like
:
uniform.
;;; typedef void (*gsl_siman_step_t) (const gsl_rng *r, void *xp, double step_size);
(
cffi:defcallback
sa-step-function
:void
((
rng
:pointer
)
(
state
:pointer
)
(
step-size
:double
))
...
...
@@ -197,7 +197,7 @@
(
defun
trivial-example-step
(
generator
state
step-size
)
(
declare
(
type
double-float
step-size
)
(
optimize
(
speed
3
)
(
safety
1
)))
(
symbol-macrolet
((
x
(
maref
state
0
)))
(
let
((
rand
(
sample
generator
'
uniform
)))
(
let
((
rand
(
sample
generator
:
uniform
)))
(
declare
(
type
double-float
rand
))
(
setf
x
(
+
(
the
double-float
x
)
(
-
(
*
2.0d0
rand
step-size
)
step-size
))))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment