Gromacs  2022.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
testarrayrefs.h File Reference
#include <gtest/gtest.h>
#include "gromacs/math/vectypes.h"
+ Include dependency graph for testarrayrefs.h:
+ This graph shows which files directly or indirectly include this file:

Description

Declares functions for comparing views of vector-like data.

Author
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Functions

template<typename T >
void gmx::test::fillInputContents (ArrayRef< T > inputRef, int scaleFactorForElements)
 Initialization overload for non-BasicVector.
 
template<typename T >
void gmx::test::fillInputContents (ArrayRef< BasicVector< T >> inputRef, int scaleFactorForElements)
 Initialization overload for BasicVector.
 
template<typename PaddedVectorOfT >
void gmx::test::resizeAndFillInput (PaddedVectorOfT *input, int newSize, int scaleFactorForElements)
 Dispatcher function for filling.
 
template<typename T >
void gmx::test::compareViews (ArrayRef< T > input, ArrayRef< T > output)
 Comparison overload for non-BasicVector.
 
template<typename T , typename U >
std::enable_if_t
< std::is_same_v
< std::remove_const_t< T >
, std::remove_const_t< U >
>, void > 
gmx::test::compareViewsIgnoreConst (ArrayRef< T > input, ArrayRef< U > output)
 Comparison for non-BasicVector ignoring const qualifiers.
 
template<typename T >
void gmx::test::compareViews (ArrayRef< BasicVector< T >> input, ArrayRef< BasicVector< T >> output)
 Comparison overload for BasicVector<T>