Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlei committed Oct 23, 2014
1 parent 9b5bb85 commit 41f1114
Show file tree
Hide file tree
Showing 4 changed files with 939 additions and 17 deletions.
21 changes: 4 additions & 17 deletions smop/Makefile
Original file line number Diff line number Diff line change
@@ -1,34 +1,21 @@
# for py3: make PYTHON=python3 CYTHON="cython -3" V=3.4

VPATH = $(SCRIPTS)/general
OCTAVE = /home/lei/octave-3.8.2
SCRIPTS = $(OCTAVE)/scripts

CYTHON = cython
PYTHON = python
#FLAGS = -S stft.m,datenum.m -X orderfields.m,legend.m,pack.m,unpack.m,__unimplemented__.m,assert.m,optimset.m
FLAGS = -X interp1.m,interpn.m,nargchk.m,nargoutchk.m,profexplore.m,profshow.m,quadgk.m,quadl.m
#FLAGS = -X interp1.m,interpn.m,nargchk.m,nargoutchk.m,profexplore.m,profshow.m,quadgk.m,quadl.m
FLAGS = -Xquadgk.m,quadl.m,lcm.m,adaptlobstp.m,spline.m,ppval.m
V = 2.7
ALL = \*.m
GENERAL = accumarray.m accumdim.m bicubic.m bincoeff.m\
bitcmp.m bitget.m bitset.m blkdiag.m cart2pol.m cart2sph.m\
cell2mat.m celldisp.m chop.m circshift.m common_size.m cplxpair.m\
cumtrapz.m curl.m dblquad.m deal.m del2.m display.m divergence.m\
fieldnames.m flipdim.m fliplr.m flipud.m gradient.m idivide.m\
int2str.m interp1.m interp2.m interp3.m interpft.m interpn.m\
isa.m iscolumn.m isdir.m isequal.m isequaln.m isrow.m isscalar.m\
issquare.m isvector.m loadobj.m logspace.m methods.m nargchk.m\
narginchk.m nargoutchk.m nextpow2.m nthargout.m num2str.m pol2cart.m\
polyarea.m postpad.m prepad.m profexplore.m profile.m profshow.m\
quadgk.m quadl.m quadv.m randi.m rat.m repmat.m rot90.m rotdim.m\
saveobj.m shiftdim.m shift.m sortrows.m sph2cart.m structfun.m\
subsindex.m trapz.m triplequad.m

all: mybench.py
$(PYTHON) -c "import mybench ; mybench.mybench()"

general.py: $(GENERAL)
$(PYTHON) main.py $^ -o $@ -v $(FLAGS)
octave.py:
find $(SCRIPTS)/general $(SCRIPTS)/specfun -name \*.m | xargs smop -v -o $@ -r core $(FLAGS)

go_so: solver.so
$(PYTHON) go.py
Expand Down
Loading

0 comments on commit 41f1114

Please sign in to comment.