Add basic operations for gmx::BasicVector<>
authorAlexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
Wed, 22 Aug 2018 17:04:09 +0000 (20:04 +0300)
committerRoland Schulz <roland.schulz@intel.com>
Sun, 26 Aug 2018 00:10:20 +0000 (02:10 +0200)
commita5d9f399250514141fa0ea98f7d479a9823e1d00
tree2aaa3251c3ec12e7516921b3dcf81296226c1e06
parentd782fb9986004f8aa3b5eeb2e87cb44f67e52716
Add basic operations for gmx::BasicVector<>

1. Overload +,-,+=,-= operations for BasicVector
2. Add class methods for dot,cross products, scale, unitv, length,
   sqlength functions (norm, norm2)
3. Add out of class functions for same operations as class methods
4. Add .toRVec, .toDVec methods
5. Provide forwarding templates in vec.h to get correct norm, norm2
   implementation when both headers are included and function is applied
   to older vector style.

Change-Id: I9d0f4490ae51d12842e0f22e9b24b46754fb4f79
Signed-off-by: Alexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
src/gromacs/math/tests/vectypes.cpp
src/gromacs/math/vec.h
src/gromacs/math/vectypes.h
src/testutils/testasserts.h