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
36517928
Commit
36517928
authored
14 years ago
by
Liam Healy
Browse files
Options
Downloads
Patches
Plain Diff
Added function #'off-stride to make duplicate array with only the off-stride elements
parent
f1fdb181
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
tests/fast-fourier-transform.lisp
+12
-3
12 additions, 3 deletions
tests/fast-fourier-transform.lisp
with
12 additions
and
3 deletions
tests/fast-fourier-transform.lisp
+
12
−
3
View file @
36517928
;; Fast fourier transform tests
;; Liam Healy 2010-08-14 11:58:26EDT fast-fourier-transform.lisp
;; Time-stamp: <2010-0
8-22 21:36:01
EDT fast-fourier-transform.lisp>
;; Time-stamp: <2010-0
9-04 17:07:32
EDT fast-fourier-transform.lisp>
;;
;; Copyright 2010 Liam M. Healy
;; Distributed under the terms of the GNU General Public License
...
...
@@ -22,6 +22,16 @@
(
defvar
*allowed-ticks*
1000000
)
(
defun
off-stride
(
array
stride
)
"Make a grid that is all of the original array except that the
stride points are excluded."
(
grid:make-foreign-array
(
element-type
array
)
:initial-contents
(
loop
for
i
from
0
below
(
grid:total-size
array
)
unless
(
zerop
(
mod
i
stride
))
collect
(
grid:gref*
array
i
))))
(
defmacro
fft-complex-result-check
(
form
element-component-type
)
"T if all FFT tests pass."
`
(
multiple-value-bind
...
...
@@ -77,5 +87,4 @@
;;; (all-fft-test-forms 9 3 (64 99))
;;; Tests commented out because they come out not so good:
;;; FAST-FOURIER-TRANSFORM: 235 assertions passed, 55 failed.; No value
;;; Tests commented out because they come out not so good.
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