Class: MatrixCalculations

Description: The MatrixCalculations class provides various methods to perform matrix calculations, including setting matrices, performing matrix operations like addition, subtraction, multiplication, and finding determinants.

Methods

Method Name Description
MatrixCalculations() Constructor sets up the default values of attributes.
view(vect) Method that allows user to view the matrix given as argument in the console.
set_input_matrix_1(input_data) Method that allows to set the value of input_matrix_1.
get_input_matrix_1() Method that allows to get the value of input_matrix_1.
set_input_matrix_2(input_data) Method that allows to set the value of input_matrix_2.
get_input_matrix_2() Method that allows to get the value of input_matrix_2.
set_output_matrix(output_data) Method that allows to set the value of output_matrix.
get_output_matrix() Method that allows to get the value of output_matrix.
set_scalar(scalar_value) Method that allows to set the value of scalar.
get_scalar() Method that allows to get the value of scalar.
set_det(det_value) Method that allows to set the value of determinant.
get_det() Method that allows to get the value of determinant.
set_sizes(sizes_value) Method that allows to set the value of sizes.
get_sizes() Method that allows to get the value of sizes.
set_minor_matrix(minor_data) Method that allows to set the value of minor_matrix.
get_minor_matrix() Method that allows to get the value of minor_matrix.
set_transposed_matrix(transposed_data) Method that allows to set the value of transposed_matrix.
get_transposed_matrix() Method that allows to get the value of transposed_matrix.
set_all_minors(all_minors_data) Method that allows to set the value of all_minors.
get_all_minors() Method that allows to get the value of all_minors.
multiply_by_scalar() Method that allows to multiply a matrix by the scalar.
check_matrix_size() Sets the attribute 'sizes' with the value of sizes of given matrix.
check_matrix_det() Sets the detrminent of 1x1, 2x2, 3x3 or empty matrix. Returns 0 if the matrix is different from these options.
cut_minor_matrix(n, m) Sets the minor matrix of a given matrix by cutting specified row and column.
transpose_matrix() Sets a transposed matrix.
cut_all_minor_matrices() Sets vector with all minor matrices cut from a given matrix.
add_subtract(add) Sets the output matrix as the sum or difference of two input matrices.
multiply_matrices() Method to multiply two matrices.
count_det_large_matrix() Method to calculate determinant of large matrices.
invert_matrix() Method to calculate inverted matrix.

Additional Methods

Method Name Description
run_parallel(total_rows, process_rows) Method that handles multithreading for calculations.