tatami_test
Utilities for testing tatami libraries
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions
test_access.hpp File Reference

Test access patterns on a tatami::Matrix. More...

#include <gtest/gtest.h>
#include "tatami/utils/new_extractor.hpp"
#include "tatami/utils/ConsecutiveOracle.hpp"
#include "tatami/utils/FixedOracle.hpp"
#include "fetch.hpp"
#include "create_indexed_subset.hpp"
#include <vector>
#include <limits>
#include <random>
#include <cmath>
#include <memory>
#include <cstdint>

Go to the source code of this file.

Classes

struct  tatami_test::TestAccessOptions
 Options for test_full_access() and friends. More...
 

Namespaces

namespace  tatami_test
 Utilities for testing tatami libraries.
 

Typedefs

typedef std::tuple< bool, bool, TestAccessOrder, int > tatami_test::StandardTestAccessOptions
 

Enumerations

enum class  tatami_test::TestAccessOrder : char { FORWARD , REVERSE , RANDOM }
 

Functions

TestAccessOptions tatami_test::convert_test_access_options (const StandardTestAccessOptions &x)
 
auto tatami_test::standard_test_access_options_combinations ()
 
template<typename Value_ , typename Index_ >
void tatami_test::test_full_access (const tatami::Matrix< Value_, Index_ > &matrix, const tatami::Matrix< Value_, Index_ > &reference, const TestAccessOptions &options)
 
template<typename Value_ , typename Index_ >
void tatami_test::test_block_access (const tatami::Matrix< Value_, Index_ > &matrix, const tatami::Matrix< Value_, Index_ > &reference, double relative_start, double relative_length, const TestAccessOptions &options)
 
template<typename Value_ , typename Index_ >
void tatami_test::test_indexed_access (const tatami::Matrix< Value_, Index_ > &matrix, const tatami::Matrix< Value_, Index_ > &reference, double relative_start, double probability, const TestAccessOptions &options)
 
template<typename Value_ , typename Index_ >
void tatami_test::test_simple_column_access (const tatami::Matrix< Value_, Index_ > &matrix, const tatami::Matrix< Value_, Index_ > &reference)
 
template<typename Value_ , typename Index_ >
void tatami_test::test_simple_row_access (const tatami::Matrix< Value_, Index_ > &matrix, const tatami::Matrix< Value_, Index_ > &reference)
 

Detailed Description

Test access patterns on a tatami::Matrix.