Templated storage for the roots of polynomial equations, plus flags to indicate the nature of the roots. More...


Public Member Functions | |
| Roots () | |
| Construct null. More... | |
| Roots (const roots::type t, const scalar x) | |
| Construct with a uniform value. More... | |
| Roots (const roots::type t, const scalar x, const Roots< N - 1 > &xs) | |
| Construct by concatenation. More... | |
| Roots (const Roots< N - 1 > &xs, const roots::type t, const scalar x) | |
| Construct by concatenation. More... | |
| template<direction M> | |
| Roots (const Roots< M > &xs, const Roots< N - M > &ys) | |
| Construct by concatenation. More... | |
| void | type (const direction i, const roots::type t) |
| Set the type of the i-th root. More... | |
| roots::type | type (const direction i) const |
| Return the type of the i-th root. More... | |
Public Member Functions inherited from VectorSpace< Roots< N >, scalar, N > | |
| VectorSpace () | |
| Construct null. More... | |
| VectorSpace (const Foam::zero) | |
| Construct initialized to zero. More... | |
| VectorSpace (Istream &) | |
| Construct from Istream. More... | |
| VectorSpace (const VectorSpace< Roots< N >, scalar, Ncmpts > &) | |
| Construct as copy. More... | |
| VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &) | |
| Construct as copy of a VectorSpace with the same size. More... | |
| const scalar & | component (const direction) const |
| scalar & | component (const direction) |
| void | component (scalar &, const direction) const |
| void | replace (const direction, const scalar &) |
| const ConstBlock< SubVector, BStart > | block () const |
| const VectorSpace< Roots< N >, scalar, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
| const scalar & | operator[] (const direction) const |
| scalar & | operator[] (const direction) |
| void | operator= (const VectorSpace< Roots< N >, scalar, Ncmpts > &) |
| void | operator= (const Foam::zero) |
| void | operator+= (const VectorSpace< Roots< N >, scalar, Ncmpts > &) |
| void | operator-= (const VectorSpace< Roots< N >, scalar, Ncmpts > &) |
| void | operator*= (const scalar) |
| void | operator/= (const scalar) |
Additional Inherited Members | |
Public Types inherited from VectorSpace< Roots< N >, scalar, N > | |
| typedef VectorSpace< Roots< N >, scalar, Ncmpts > | vsType |
| VectorSpace type. More... | |
| typedef scalar | cmptType |
| Component type. More... | |
Static Public Member Functions inherited from VectorSpace< Roots< N >, scalar, N > | |
| static direction | size () |
| Return the number of elements in the VectorSpace = Ncmpts. More... | |
| static Roots< N > | uniform (const scalar &s) |
| Return a VectorSpace with all elements = s. More... | |
Public Attributes inherited from VectorSpace< Roots< N >, scalar, N > | |
| scalar | v_ [Ncmpts] |
| The components of this vector space. More... | |
Static Public Attributes inherited from VectorSpace< Roots< N >, scalar, N > | |
| static const direction | dim |
| Dimensionality of space. More... | |
| static const direction | nComponents |
| Number of components in this vector space. More... | |
| static const direction | mRows |
| static const direction | nCols |
| static const char *const | typeName |
| static const char *const | componentNames [] |
| static const Roots< N > | zero |
| static const Roots< N > | one |
| static const Roots< N > | max |
| static const Roots< N > | min |
| static const Roots< N > | rootMax |
| static const Roots< N > | rootMin |
Templated storage for the roots of polynomial equations, plus flags to indicate the nature of the roots.
|
inline |
Construct null.
Definition at line 29 of file RootsI.H.
References forAll, Foam::roots::nan, and Roots< N >::type().
Referenced by Roots< N >::Roots().


|
inline |
Construct with a uniform value.
Definition at line 41 of file RootsI.H.
References forAll, Roots< N >::Roots(), Roots< N >::type(), VectorSpace< Roots< N >, scalar, N >::v_, and x.

|
inline |
Construct by concatenation.
Definition at line 55 of file RootsI.H.
References forAll, Roots< N >::Roots(), Roots< N >::type(), VectorSpace< Roots< N >, scalar, N >::v_, and x.

|
inline |
Construct by concatenation.
Definition at line 75 of file RootsI.H.
References forAll, N, Roots< N >::Roots(), Roots< N >::type(), VectorSpace< Roots< N >, scalar, N >::v_, and x.

Construct by concatenation.
Definition at line 96 of file RootsI.H.
References forAll, M, Roots< N >::type(), and VectorSpace< Roots< N >, scalar, N >::v_.

|
inline |
Set the type of the i-th root.
Definition at line 120 of file RootsI.H.
Referenced by Foam::eigenValues(), Roots< N >::Roots(), cubicEqn::roots(), and particle< Type >::trackToMovingTri().

|
inline |
1.8.13