<commit_before>#include <iostream>
#include "matrix.hpp"

int main() {
    std::vector<double> vector1{2, 1, 1, 0, 4, 3, 3, 1, 8,7,9,5, 6,7,9,8};
    std::vector<double> vector2{1, 1, -1, 3};

    matrix<double> m1(4, 4, {2, 1, 1, 0, 4, 3, 3, 1, 8,7,9,5, 6,7,9,8});
    nvector<double> b(4, {1, 1, -1, 3});

    std::cout << "Information about A:" << std::endl;
    auto data = m1.data();
    for (auto i = data.begin(); i != data.end(); ++i) {
        std::cout << *i << " ";
    }
    std::cout << std::endl;

    std::cout << "Information about b:" << std::endl;
    std::cout << "b has " << b.size() << " rows" << std::endl;
    for (auto i = b.begin(); i != b.end(); ++i) {
        std::cout << *i << " ";
    }
    std::cout << std::endl;

    auto x = gaussian_no_pivoting(m1, b);
    auto y = gaussian_partial_pivoting(m1, b);

    std::cout << "x is: (" << x[0] << ", " << x[1] << ", " << x[2] << ", " << x[3] << ")" << std::endl;
    std::cout << "y is: (" << y[0] << ", " << y[1] << ", " << y[2] << ", " << y[3] << ")" << std::endl;
}<commit_msg>Updating the testing code. All three methods return the same answer (almost).<commit_after>#include <iostream>
#include "matrix.hpp"

int main() {
    std::vector<double> vector1{2, 1, 1, 0, 4, 3, 3, 1, 8,7,9,5, 6,7,9,8};
    std::vector<double> vector2{1, 1, -1, 3};

    matrix<double> m1(4, 4, {2, 1, 1, 0, 4, 3, 3, 1, 8,7,9,5, 6,7,9,8});
    nvector<double> b(4, {1, 1, -1, 3});

    std::cout << "Information about A:" << std::endl;
    auto data = m1.data();
    for (auto i = data.begin(); i != data.end(); ++i) {
        std::cout << *i << " ";
    }
    std::cout << std::endl;

    std::cout << "Information about b:" << std::endl;
    std::cout << "b has " << b.size() << " rows" << std::endl;
    for (auto i = b.begin(); i != b.end(); ++i) {
        std::cout << *i << " ";
    }
    std::cout << std::endl;

    auto x = gaussian_no_pivoting(m1, b);
    auto y = gaussian_partial_pivoting(m1, b);
    auto z = gaussian_complete_pivoting(m1, b);

    std::cout << "x is: (" << x[0] << ", " << x[1] << ", " << x[2] << ", " << x[3] << ")" << std::endl;
    std::cout << "y is: (" << y[0] << ", " << y[1] << ", " << y[2] << ", " << y[3] << ")" << std::endl;
    std::cout << "z is: (" << z[0] << ", " << z[1] << ", " << z[2] << ", " << z[3] << ")" << std::endl;
}
{'fraction_non_alphanumeric': 0.2892703862660944, 'fraction_numerical': 0.051072961373390555, 'mean_word_length': 2.8401976935749587, 'pattern_counts': {'":': 0, '<': 169, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2153137', 'n_tokens_mistral': 1040, 'n_tokens_neox': 981, 'n_words': 235}