-
Notifications
You must be signed in to change notification settings - Fork 3
Documentation
ForceBru edited this page Mar 29, 2016
·
4 revisions
#Matrix Documentation
##Building Matrix
-
Clone this repo or download the zipfile
- Unzip the downloaded file if any
-
Open console and change directory to where you've got a copy of Matrix
-
Change directory to
Matrix-master:cd Matrix-master -
Generate object files and create a library
-
Run tests (optional)
cd ../Matrix_test $CXX -std=c++0x -L ../Matrix -I ../Matrix main.cpp Tests.cpp -o Test -lMatrix
-
Use Matrix in your project
All you need is a header called
Matrix.hpp.Source file
// main.cpp #include <iostream> #include "Matrix.hpp" int main() { Matrix a; a.Random(); std::cout << a << '\n'; return 0; }
Compile it
# if you're still in Matrix/Matrix_tests cd .. $CXX -I Matrix main.cpp -o main
-
If you still have questions about how to compile Matrix or link with the library, please have a look at the
.travis.ymlfile.