Commit 45e4b1b2 authored by Phil Austin's avatar Phil Austin

add cases to makefile

parent 06103f96
...@@ -6,7 +6,15 @@ test: all ...@@ -6,7 +6,15 @@ test: all
python run_numeric_demo.py python run_numeric_demo.py
python run_spam.py python run_spam.py
cd callback; $(MAKE) test 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: clean:
@echo Cleaning Demos @echo Cleaning Demos
@rm -f *.c *.o *.so *~ core @rm -f *.c *.o *.so *~ core
......
import cheese import cheese
def report_cheese(name): def report_cheese(name):
print("Found cheese: " + name) print("Found cheese: " + name.decode('utf-8'))
cheese.find(report_cheese) cheese.find(report_cheese)
import Numeric import numpy
import numeric_demo import numpy_demo
a = Numeric.array([[1.0, 3.5, 8.4], [2.3, 6.6, 4.1]], "f") a = numpy.array([1.0, 3.5, 8.4, 2.3, 6.6, 4.1], "d")
numeric_demo.print_2d_array(a) numpy_demo.sum_of_squares(a)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment