Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
45e4b1b2
Commit
45e4b1b2
authored
Mar 25, 2016
by
Phil Austin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add cases to makefile
parent
06103f96
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
Demos/Makefile
Demos/Makefile
+9
-1
Demos/callback/run_cheese.py
Demos/callback/run_cheese.py
+1
-1
Demos/run_numeric_demo.py
Demos/run_numeric_demo.py
+4
-4
No files found.
Demos/Makefile
View file @
45e4b1b2
...
...
@@ -6,7 +6,15 @@ test: all
python run_numeric_demo.py
python run_spam.py
cd
callback
;
$(MAKE)
test
cd
embed
;
$(MAKE)
test
#
# longer running
#python integrate_timing.py
# also run
# python setup.py build_ext --inplace in
# benchmarks to build benchmarks
# python setup.py build_ext --inplace in libraries then
# python -c 'import call_mymath;print
(
call_mymath.call_sinc
(
1
))
'
clean
:
@
echo
Cleaning Demos
@
rm
-f
*
.c
*
.o
*
.so
*
~ core
...
...
Demos/callback/run_cheese.py
View file @
45e4b1b2
import
cheese
def
report_cheese
(
name
):
print
(
"Found cheese: "
+
name
)
print
(
"Found cheese: "
+
name
.
decode
(
'utf-8'
)
)
cheese
.
find
(
report_cheese
)
Demos/run_numeric_demo.py
View file @
45e4b1b2
import
Numeric
import
num
eric
_demo
import
numpy
import
num
py
_demo
a
=
Numeric
.
array
([[
1.0
,
3.5
,
8.4
],
[
2.3
,
6.6
,
4.1
]],
"f
"
)
num
eric_demo
.
print_2d_array
(
a
)
a
=
numpy
.
array
([
1.0
,
3.5
,
8.4
,
2.3
,
6.6
,
4.1
],
"d
"
)
num
py_demo
.
sum_of_squares
(
a
)
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