Coder Social home page Coder Social logo

weiming-hu / linearsystemsolvers Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 47.26 MB

This repository is created for Penn State course CSE 597 Implementation of Parallel Computer Codes

License: MIT License

C++ 38.97% Shell 30.10% CMake 6.39% R 24.54%
linear-system-solver c-plus-plus

linearsystemsolvers's Introduction

Hi there ๐Ÿ‘‹

My name is Weiming Hu. I'm a researcher in โšก Renewable Energy โšก and โ˜๏ธ Weather Forecasting โ˜๏ธ .

I'm also an enthusiast for free software and the open-source movement.

  • ๐Ÿšง I'm working on ๐Ÿšง

    • Developing R and Python packages for the scientific community
    • Becoming a Bangle.JS contributor.
  • ๐Ÿ’ฌ Ask me about ๐Ÿ’ฌ

    • R, Python, C++, Supercomputers
  • ๐Ÿ“ซ How to reach me ๐Ÿ“ซ

Top Langs

linearsystemsolvers's People

Watchers

 avatar  avatar

linearsystemsolvers's Issues

Iterative methods only work for diagonally dominant matrices

Describe the bug
Both the Jacobi and the Gauss-Seidel iterative methods only work for diagonally dominant matrices. Although being diagonally dominant is one of the assumptions for the iterative methods, is there still an iterative solution to them?

To Reproduce
Steps to reproduce the behavior:

  1. git clone the repository
  2. Compile the program
mkdir build && cd build
cmake ..
make
  1. Go to the binary output folder
cd ../output/bin
  1. Run the successful test with Jacobi method for 100 iterations
./iterativeSolver J ../../data/A_5.csv ../../data/b_5.csv 100 1 2
  1. Print out the correct result
cat ../../data/x_5.csv # they should be the same with the above
  1. Run the failing test with Jacobi method for 100 iterations
./iterativeSolver J ../../data/A_failed.csv ../../data/b_failed.csv 100 1 2
# the residual is diverging
  1. Print out the correct result
cat ../../data/x_failed.csv
# they are different from the above

Expected behavior
Jacobi method should be converging but it is not. The residual gradually diverges rather than becoming a tremendously large number suddenly suggesting that this is less of a numerical precision problem, but more of a systematic bug issue.

Desktop (please complete the following information):

  • OS: Ubuntu 18.04.1 LTS (Bionic Beaver)
  • Browser Chrome

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.