<commit_before>/**
 * @file uselapack_test.cc
 *
 * Tests for LAPACK integration.
 */

#include "base/test.h"

#include "uselapack.h"

#include "la.h"
TEST_SUITE_BEGIN(uselapack);

/**
 * Creates a matrix locally.
 * The matrix cotents are column-major.
 */
#define MAKE_MATRIX_TRANS(name, n_rows, n_cols, contents ...) \
    double name ## _values [] = { contents }; \
    DEBUG_ASSERT(sizeof(name ## _values) / sizeof(double) == n_rows * n_cols); \
    Matrix name; \
    name.Alias(name ## _values, (n_rows), (n_cols));

/**
 * Creates a vector locally.
 * The matrix cotents are column-major.
 */
#define MAKE_VECTOR(name, length, contents ...) \
    double name ## _values [] = { contents }; \
    DEBUG_ASSERT(sizeof(name ## _values) / sizeof(double) == (length)); \<commit_msg>fixed unit tests include<commit_after>/**
 * @file uselapack_test.cc
 *
 * Tests for LAPACK integration.
 */

#include "fastlib/base/test.h"

#include "uselapack.h"

#include "la.h"
TEST_SUITE_BEGIN(uselapack);

/**
 * Creates a matrix locally.
 * The matrix cotents are column-major.
 */
#define MAKE_MATRIX_TRANS(name, n_rows, n_cols, contents ...) \
    double name ## _values [] = { contents }; \
    DEBUG_ASSERT(sizeof(name ## _values) / sizeof(double) == n_rows * n_cols); \
    Matrix name; \
    name.Alias(name ## _values, (n_rows), (n_cols));

/**
 * Creates a vector locally.
 * The matrix cotents are column-major.
 */
#define MAKE_VECTOR(name, length, contents ...) \
    double name ## _values [] = { contents }; \
    DEBUG_ASSERT(sizeof(name ## _values) / sizeof(double) == (length)); \
{'fraction_non_alphanumeric': 0.16446124763705103, 'fraction_numerical': 0.0, 'mean_word_length': 3.473239436619718, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7304132', 'n_tokens_mistral': 553, 'n_tokens_neox': 543, 'n_words': 131}