Skip to content

Commit b00e391

Browse files
committed
add eigen example
1 parent d61cf3c commit b00e391

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Put the path to your Python.h here
22
includes = -I /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m
33

4-
# Numpy include
4+
# Numpy include
55
includes += -I /usr/local/lib/python3.7/site-packages/numpy/core/include
66

77
# Add the path to the directory containing libpython*.a here if the linking fails
88
includes += -L /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib
99

10-
# Link your python version
10+
# Link your python version
1111
linkings = -lpython3.7
1212

1313
# Compiler definitions
@@ -18,7 +18,7 @@ eigen_include = -I /usr/local/include/eigen3
1818

1919
examples: minimal basic modern animation nonblock xkcd quiver bar surface subplot fill_inbetween fill update
2020

21-
eigen: eigen_basic
21+
eigen: eigen_basic eigen_modern
2222

2323
minimal: examples/minimal.cpp matplotlibcpp.h
2424
cd examples && g++ -DWITHOUT_NUMPY minimal.cpp ${includes} ${linkings} -o minimal ${definitions}
@@ -56,12 +56,15 @@ fill_inbetween: examples/fill_inbetween.cpp matplotlibcpp.h
5656

5757
fill: examples/fill.cpp matplotlibcpp.h
5858
cd examples && g++ fill.cpp ${includes} ${linkings} -o fill ${definitions}
59-
59+
6060
update: examples/update.cpp matplotlibcpp.h
6161
cd examples && g++ update.cpp ${includes} ${linkings} -o update ${definitions}
6262

6363
eigen_basic: examples/eigen/basic.cpp matplotlibcpp.h
6464
cd examples/eigen && g++ basic.cpp ${includes} ${eigen_include} ${linkings} -o $@ ${definitions}
6565

66+
eigen_modern: examples/eigen/modern.cpp matplotlibcpp.h
67+
cd examples/eigen && g++ modern.cpp ${includes} ${eigen_include} ${linkings} -o $@ ${definitions}
68+
6669
clean:
6770
rm -f examples/{minimal,basic,modern,animation,nonblock,xkcd,quiver,bar,surface,subplot,fill_inbetween,fill,update}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy