Add mdspan basic elementwise math
authorKevin Boyd <kevin.boyd@uconn.edu>
Tue, 18 Jun 2019 01:27:30 +0000 (21:27 -0400)
committerPaul Bauer <paul.bauer.q@gmail.com>
Tue, 2 Jul 2019 07:14:18 +0000 (09:14 +0200)
commitf3c2e710808372b44e22d01bdafbc8d07ce42797
tree7e8a773be3f95ac6303f31511763188a872f1a65
parent74ff313dbefaa4844424d921829552fe7508215f
Add mdspan basic elementwise math

BasicMatrix3x3 provides a replacement for the c-style tensors, but
has yet to replicate the tensor operations in math/vec.h. This provides
a subset of that functionality for msdpan in general, which can be used
for MultiDimArray trivially

Refs #2976

Change-Id: I17b77df032dbbfde0ff87108215edcec07fef6c4
src/gromacs/mdspan/extensions.h
src/gromacs/mdspan/tests/extensions.cpp