Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
vectypes.cpp File Reference
#include "gmxpre.h"
#include "gromacs/math/vectypes.h"
#include <vector>
#include <gtest/gtest.h>
#include "gromacs/math/vec.h"
#include "testutils/testasserts.h"
+ Include dependency graph for vectypes.cpp:

Description

Tests various corners of gmx::RVec implementation.

The main point of these tests is to check that all different constructs using gmx::RVec compile, and that some of the non-trivial conversions to/from rvec work as intended.

Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com

Functions

const dvec * anonymous_namespace{vectypes.cpp}::testFunction (const dvec &x)
 Helper function for testing DVec to dvec conversions.
 
const ivec * anonymous_namespace{vectypes.cpp}::testFunction (const ivec &x)
 Helper function for testing IVec to ivec conversions.
 
const rvec * anonymous_namespace{vectypes.cpp}::testFunction (const rvec &x)
 Helper function for testing RVec to rvec conversions.