Skip to content

CauchYLIU3551/SparseMatrix

Repository files navigation

SparseMatrix

This is a basic implement of CRS in C++

This is a simple practice in computing sparse matrix. It is unfinished yet.

In this sparsematrix.h, I use the CRS method to save the matrix and it will provide a series of operations of sparse matrix. It can finish some simple computation such as : 1.multiply 2. add 3. divide A into L, U, D such that A=L+U+D(it will be helpful in Jacobi iteration) 4. show the values in sparsematrix 5. inverse (unfinised!)

I have implement a simple version of Jacobi iteration method in the JacobiSolver.cpp; Now I finish the CG method in CGsolver.cpp;

And during the programming, I will put the mathematical computing fucntions into a computing .h file and .cpp file;

In the future, I hope I can achieve the CG or PCG to solve large scale sparse matrix to solve some 'Ax=b' problem with this .h file!

About

A practice in computing sparse matrix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages