Commit Graph

11 Commits

Author SHA1 Message Date
aleksandrasob
7278706423 after rebase 2024-11-10 18:22:36 +01:00
Gromiusz
73a12d3859
Time measurement feature (#6)
* making new branch and importing time

* add time_measurement decorator

* add measurement functionality to solve()
2024-10-31 17:50:21 +01:00
Gromiusz
c938e63b7f
Complete all threads functions in Linear Algebra Utils, add new parameters to tests (#5)
* complete threads function (tests FAIL)

Test fail due to indivisibility of the problem into threads. Test is turned to ProcessingType.THREADS!. On ProcessingType.SEQUENTIAL all test PASS.
TODO: make sure that len(problem) is divisible by num of threads. It can be less threads for small problem.

* fixing bugs in linear_algebra_utils, properly adress chunks to threads

* the refactor of the ThreadsLinearAlgebraUtils

* set test to execute both sequential and threads processing types

* Delete unnecessary lines tests.py

* rename scalar_matrix_multiply to scalar_vector_multiply
2024-10-27 20:13:43 +01:00
Gromiusz
b02117c11b
Add Interface for Extending Parallel Processing Methods (#4)
* Add choice between sequential or parallel(threads) processing

The LinearAlgebraUtils class has been changed to abstract class.

* remove needless imports and move the functionality from constructor to the function

* add ProcessingType class for a more transparent selection of methods

* the refactor of the assign_method

* rename the assign_method method
2024-10-25 17:01:19 +02:00
42ebe9c053 feat: temporary remove calculatimng richardson convergence 2024-10-25 11:56:59 +02:00
6946035518 feat: compare norms calculated by richardson vs numpy 2024-10-20 19:34:12 +02:00
d74da05da8 feat: made max iterations obligatory argument 2024-10-20 19:06:15 +02:00
ea98dc9712 feat: changed to proper pytests 2024-10-20 18:27:51 +02:00
76ace2b76c feat: reworked convergence calculations 2024-10-20 18:09:06 +02:00
d3b0e8e0cc feat: convergence method suggested by wikipedia 2024-10-20 17:47:37 +02:00
aleksandrasob
52d6012092 Add sequential version of Richardson's algorithm and first tests 2024-10-20 16:30:42 +02:00