<commit_before>//=======================================================================
// Copyright (c) 2014-2017 <NAME>
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
//  http://opensource.org/licenses/MIT)
//=======================================================================

#include "test.hpp"
#include "etl/stop.hpp"

#include "mmul_test.hpp"

// Vector-Matrix Multiplication with mixed types

// GEVM

TEST_CASE("gevm/0", "[gevm]") {
    etl::fast_matrix<float, 3, 2> a = {1, 2, 3, 4, 5, 6};
    etl::fast_vector<double, 3> b    = {7, 8, 9};
    etl::fast_matrix<float, 2> c;

    c = b * a;

    REQUIRE_EQUALS(c(0), float(76));
    REQUIRE_EQUALS(c(1), float(100));
}

TEST_CASE("gevm/1", "[gevm]") {
    etl::fast_matrix<double, 3, 2> a = {1, 2, 3, 4, 5, 6};
    etl::fast_vector<double, 3> b    = {7, 8, 9};
    etl::fast_matrix<float, 2> c;

    c = b * a;

    REQUIRE_EQUALS(c(0), float(76));
    REQUIRE_EQUALS(c(1), float(100));
}

TEST_CASE("gevm/2", "[gevm]") {
    etl::fast_matrix<float, 3, 2> a = {1, 2, 3, 4, 5, 6};
    etl::fast_vector<float, 3> b    = {7, 8, 9};
    etl::fast_matrix<double, 2> c;

    c = b * a;

    REQUIRE_EQUALS(c(0), double(76));
    REQUIRE_EQUALS(c(1), double(100));
}

// GEVM_T

TEST_CASE("gevm_t/0", "[gevm]") {
    etl::fast_matrix<float, 2, 3> a = {1, 3, 5, 2, 4, 6};
    etl::fast_vector<double, 3> b    = {7, 8, 9};
    etl::fast_matrix<float, 2> c;

    c = b * trans(a);

    REQUIRE_EQUALS(c(0), float(76));
    REQUIRE_EQUALS(c(1), float(100));
}

TEST_CASE("gevm_t/1", "[gevm]") {
    etl::fast_matrix<double, 2, 3> a = {1, 3, 5, 2, 4, 6};
    etl::fast_vector<double, 3> b    = {7, 8, 9};
    etl::fast_matrix<float, 2> c;

    c = b * trans(a);

    REQUIRE_EQUALS(c(0), float(76));
    REQUIRE_EQUALS(c(1), float(100));
}

TEST_CASE("gevm_t/2", "[gevm]") {
    etl::fast_matrix<float, 2, 3> a = {1, 3, 5, 2, 4, 6};
    etl::fast_vector<float, 3> b    = {7, 8, 9};
    etl::fast_matrix<double, 2> c;

    c = b * trans(a);

    REQUIRE_EQUALS(c(0), double(76));
    REQUIRE_EQUALS(c(1), double(100));
}
<commit_msg>Fix test names<commit_after>//=======================================================================
// Copyright (c) 2014-2017 <NAME>
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
//  http://opensource.org/licenses/MIT)
//=======================================================================

#include "test.hpp"
#include "etl/stop.hpp"

#include "mmul_test.hpp"

// Vector-Matrix Multiplication with mixed types

// GEVM

TEST_CASE("gevm/types/0", "[gevm]") {
    etl::fast_matrix<float, 3, 2> a = {1, 2, 3, 4, 5, 6};
    etl::fast_vector<double, 3> b    = {7, 8, 9};
    etl::fast_matrix<float, 2> c;

    c = b * a;

    REQUIRE_EQUALS(c(0), float(76));
    REQUIRE_EQUALS(c(1), float(100));
}

TEST_CASE("gevm/types/1", "[gevm]") {
    etl::fast_matrix<double, 3, 2> a = {1, 2, 3, 4, 5, 6};
    etl::fast_vector<double, 3> b    = {7, 8, 9};
    etl::fast_matrix<float, 2> c;

    c = b * a;

    REQUIRE_EQUALS(c(0), float(76));
    REQUIRE_EQUALS(c(1), float(100));
}

TEST_CASE("gevm/types/2", "[gevm]") {
    etl::fast_matrix<float, 3, 2> a = {1, 2, 3, 4, 5, 6};
    etl::fast_vector<float, 3> b    = {7, 8, 9};
    etl::fast_matrix<double, 2> c;

    c = b * a;

    REQUIRE_EQUALS(c(0), double(76));
    REQUIRE_EQUALS(c(1), double(100));
}

// GEVM_T

TEST_CASE("gevm_t/types/0", "[gevm]") {
    etl::fast_matrix<float, 2, 3> a = {1, 3, 5, 2, 4, 6};
    etl::fast_vector<double, 3> b    = {7, 8, 9};
    etl::fast_matrix<float, 2> c;

    c = b * trans(a);

    REQUIRE_EQUALS(c(0), float(76));
    REQUIRE_EQUALS(c(1), float(100));
}

TEST_CASE("gevm_t/types/1", "[gevm]") {
    etl::fast_matrix<double, 2, 3> a = {1, 3, 5, 2, 4, 6};
    etl::fast_vector<double, 3> b    = {7, 8, 9};
    etl::fast_matrix<float, 2> c;

    c = b * trans(a);

    REQUIRE_EQUALS(c(0), float(76));
    REQUIRE_EQUALS(c(1), float(100));
}

TEST_CASE("gevm_t/types/2", "[gevm]") {
    etl::fast_matrix<float, 2, 3> a = {1, 3, 5, 2, 4, 6};
    etl::fast_vector<float, 3> b    = {7, 8, 9};
    etl::fast_matrix<double, 2> c;

    c = b * trans(a);

    REQUIRE_EQUALS(c(0), double(76));
    REQUIRE_EQUALS(c(1), double(100));
}

{'fraction_non_alphanumeric': 0.26864977922379735, 'fraction_numerical': 0.06228212874738555, 'mean_word_length': 3.5544973544973546, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '7356490', 'n_tokens_mistral': 2075, 'n_tokens_neox': 1850, 'n_words': 406}