30 template <Foam::direction N>
42 template <Foam::direction N>
55 template <Foam::direction N>
60 const Roots<N - 1>& xs
69 this->
v_[i+1] = xs[i];
75 template <Foam::direction N>
78 const Roots<N - 1>& xs,
95 template <Foam::direction N>
96 template <Foam::direction M>
112 this->
v_[i +
M] = ys[i];
120 template <Foam::direction N>
127 types_ += (t -
type(i)) << 3*i;
131 template <Foam::direction N>
134 return static_cast<roots::type>((types_ >> 3*i) & 7);
Templated storage for the roots of polynomial equations, plus flags to indicate the nature of the roo...
#define forAll(list, i)
Loop across all elements in list.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Roots()
Default construct as 'nan'.
const Vector< label > N(dict.get< Vector< label >>("N"))
void type(const direction i, const roots::type t)
Set the type of the i-th root.
scalar v_[Ncmpts]
The components of this vector space.