ENH: additional construct/assignment methods for complex (#1247)

- construct/assign from Zero
This commit is contained in:
Mark Olesen
2019-03-25 15:17:58 +01:00
committed by Andrew Heather
parent a33f1787b7
commit a1999bc92c
8 changed files with 305 additions and 131 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -44,13 +44,13 @@ const char* const Foam::complexVector::vsType::componentNames[] =
template<>
const Foam::complexVector Foam::complexVector::vsType::zero
(
complexVector::uniform(complex(0, 0))
complexVector::uniform(complex::zero)
);
template<>
const Foam::complexVector Foam::complexVector::vsType::one
(
complexVector::uniform(complex(1, 1))
complexVector::uniform(complex::one)
);
template<>