This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy | |
| SEPARATOR = '-' * 80 | |
| class GaussianEliminationCalculator: | |
| def __init__(self, augmented_matrix: numpy.matrix) -> None: | |
| if augmented_matrix.shape[0] != augmented_matrix.shape[1] - 1: | |
| raise ValueError('coefficient matrix should be nxn') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <algorithm> | |
| #include <iostream> | |
| #include <string> | |
| constexpr char BLANK = 'B'; | |
| constexpr char IGNORED = 'I'; | |
| constexpr char VISITED = 'V'; | |
| constexpr char DELIM1 = 'Z'; | |
| constexpr char DELIM2 = 'X'; | |
| constexpr char DELIM3 = '0'; |