Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gsll
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antonio Juan
gsll
Commits
e8e3d438
Commit
e8e3d438
authored
15 years ago
by
James Wright
Committed by
Liam Healy
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Changed 'uniform to :uniform
parent
12db5cd0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
solve-minimize-fit/simulated-annealing.lisp
+2
-2
2 additions, 2 deletions
solve-minimize-fit/simulated-annealing.lisp
with
2 additions
and
2 deletions
solve-minimize-fit/simulated-annealing.lisp
+
2
−
2
View file @
e8e3d438
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
;;; The user-step-function should take a rng pointer, a state pointer,
;;; The user-step-function should take a rng pointer, a state pointer,
;;; and a double-float, and return nothing. The rng pointer should be
;;; 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);
;;; typedef void (*gsl_siman_step_t) (const gsl_rng *r, void *xp, double step_size);
(
cffi:defcallback
sa-step-function
:void
(
cffi:defcallback
sa-step-function
:void
((
rng
:pointer
)
(
state
:pointer
)
(
step-size
:double
))
((
rng
:pointer
)
(
state
:pointer
)
(
step-size
:double
))
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
(
defun
trivial-example-step
(
generator
state
step-size
)
(
defun
trivial-example-step
(
generator
state
step-size
)
(
declare
(
type
double-float
step-size
)
(
optimize
(
speed
3
)
(
safety
1
)))
(
declare
(
type
double-float
step-size
)
(
optimize
(
speed
3
)
(
safety
1
)))
(
symbol-macrolet
((
x
(
maref
state
0
)))
(
symbol-macrolet
((
x
(
maref
state
0
)))
(
let
((
rand
(
sample
generator
'
uniform
)))
(
let
((
rand
(
sample
generator
:
uniform
)))
(
declare
(
type
double-float
rand
))
(
declare
(
type
double-float
rand
))
(
setf
x
(
+
(
the
double-float
x
)
(
-
(
*
2.0d0
rand
step-size
)
step-size
))))))
(
setf
x
(
+
(
the
double-float
x
)
(
-
(
*
2.0d0
rand
step-size
)
step-size
))))))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment