Gromacs  2026.0-dev-20241204-d69d709
 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 <array>
#include <string>
#include <utility>
#include <vector>
#include <gtest/gtest.h>
#include "gromacs/math/vec.h"
#include "gromacs/utility/real.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 * gmx::test::anonymous_namespace{vectypes.cpp}::testFunction (const dvec &x)
 Helper function for testing DVec to dvec conversions.
 
const ivec * gmx::test::anonymous_namespace{vectypes.cpp}::testFunction (const ivec &x)
 Helper function for testing IVec to ivec conversions.
 
const rvecgmx::test::anonymous_namespace{vectypes.cpp}::testFunction (const rvec &x)
 Helper function for testing RVec to rvec conversions.