In this project, a standalone C++ class was built which can work with Symmetric Matrices on top of the Eigen Library. Working only with the upper/lower triangular part of a symmetric matrix reduces the storage space as well as the complexity for different matrix operations considerably. The following operations were implemented-
- SymMat +&- SymMat
- SymMat +&- Eigen::Matrix
- SymMat * SymMat
- SymMat * Eigen::Matrix
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
-
Install the latest Eigen library (http://eigen.tuxfamily.org/index.php?title=Main_Page). Make sure that the Eigen folder is in your include path (/usr/local/include).
-
Latest g++ compiler.
The Test.cpp file shows a few examples of addition and multiplication cases. Follow the following points to get the Test file up and running-
- Clone the repository.
git clone https://github.com/adarsh1001/Atlas_Eigen.git
- Compile the Test.cpp with g++.
g++ Test.cpp -o Test
- Execute the run file
./Test