🚀 multithread solving linear system with Gauss-Jordan elimination
requirements:
run:
$ bash run.sh {matrix_dimension} {values_range} {number_of_procces}
or
$ ./run.sh {matrix_dimension} {values_range} {number_of_procces}
for example: $ bash run.sh 3 10 3
:
- generate random matrix
A
with size(3,3)
and vectorb
- for
A
find inversed matrixA_inv
using3
process - solve equation like
x = A_inv * b
- write ouputs, count time
Notes
- for direct input use
input.txt
- inverse matrix and vector
x
stored inoutput.txt