Commit Graph

24 Commits

Author SHA1 Message Date
2619f041d7 feat: calculate eigenvalues using numpy library 2024-11-25 15:47:17 +01:00
aleksandrasob
b55949571a
Delete code/xd.py 2024-11-17 17:47:53 +01:00
aleksandrasob
c2263b9361 sing vals as eigenvals for nementh12 2024-11-17 17:45:23 +01:00
3eb6d14a98 chore: added readme and requirements file 2024-11-13 17:20:42 +01:00
aleksandrasob
9f5f33495a fixing 2024-11-12 20:50:25 +01:00
aleksandrasob
7c6482eed9 adding time measurements for processes, adding two more matrix types 2024-11-11 17:25:36 +01:00
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
cb179a76ce chore: moved debug prints to separate function 2024-10-20 19:20:38 +02:00
70c0da16c0 fix: calculations of inverse matrix 2024-10-20 19:19:31 +02:00
d74da05da8 feat: made max iterations obligatory argument 2024-10-20 19:06:15 +02:00
9014c37064 feat: can run tests independently 2024-10-20 18:39:01 +02:00
838d5ed563 fix: removed adding "size" to self values 2024-10-20 18:32:12 +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
Gromiusz
ac3ca89815 feat: richardson with threads - add_elements and substract_elements methods 2024-10-19 23:39:42 +02:00
Gromiusz
5e68bddc64 feat: refactor main and richardson to be modular 2024-10-19 23:24:26 +02:00
c865b8b1a0 feat: simple test and non-numpy sequential Richardson 2024-10-18 12:33:00 +02:00