Skip to content
Snippets Groups Projects
Commit 4f8f93bc authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

adds required method

parent 3fd45eea
No related branches found
No related tags found
1 merge request!128Feature/scalar based nse
Pipeline #231567 passed
...@@ -208,6 +208,13 @@ class field ...@@ -208,6 +208,13 @@ class field
return *(this->data + cindex*2 + imag); return *(this->data + cindex*2 + imag);
} }
inline rnumber &cval(ptrdiff_t cindex, int imag) const
{
assert(fc == ONE);
assert(imag == 0 || imag == 1);
return *(this->data + cindex*2 + imag);
}
inline rnumber &cval(ptrdiff_t cindex, int component, int imag) inline rnumber &cval(ptrdiff_t cindex, int component, int imag)
{ {
assert(fc == THREE); assert(fc == THREE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment