tatami_test
Utilities for testing tatami libraries
Loading...
Searching...
No Matches
define_non_target_part.hpp File Reference

Define a part of the non-target dimension. More...

#include <vector>
#include <random>
#include <optional>
#include <algorithm>
#include <cassert>
#include "tatami/base/Matrix.hpp"
#include "sanisizer/sanisizer.hpp"
#include "create_seed.hpp"
#include "utils.hpp"

Go to the source code of this file.

Namespaces

namespace  tatami_test
 Utilities for testing tatami libraries.
 

Functions

template<typename Index_ >
std::pair< Index_, Index_ > tatami_test::define_non_target_block (const Index_ extent, const double relative_start, const double relative_length)
 
template<typename Value_ , typename Index_ >
std::pair< Index_, Index_ > tatami_test::define_non_target_block (const tatami::Matrix< Value_, Index_ > &matrix, bool use_row, const double relative_start, const double relative_length)
 
template<typename Index_ >
tatami::VectorPtr< Index_ > tatami_test::define_non_target_indices (const Index_ start, const Index_ length, const double probability, const std::optional< SeedType > &seed)
 
template<typename Index_ >
tatami::VectorPtr< Index_ > tatami_test::define_non_target_indices (const Index_ extent, const double relative_start, const double relative_length, const double probability, const std::optional< SeedType > &seed)
 
template<typename Value_ , typename Index_ >
tatami::VectorPtr< Index_ > tatami_test::define_non_target_indices (const tatami::Matrix< Value_, Index_ > &matrix, bool use_row, const double relative_start, const double relative_length, const double probability, const std::optional< SeedType > &seed)
 

Detailed Description

Define a part of the non-target dimension.