|
libMesh
|
A Point defines a location in LIBMESH_DIM dimensional Real space.
More...
#include <point.h>
Public Types | |
| typedef Real | value_type |
| Helper typedef for C++98 generic programming. | |
| typedef unsigned int | index_type |
| Helper typedef for generic index programming. | |
Public Member Functions | |
| Point (const Real x=0., const Real y=0., const Real z=0.) | |
| Constructor. | |
| Point (const Point &p)=default | |
| Trivial copy-constructor. | |
| Point (const TypeVector< Real > &p) | |
| Copy-constructor from non-point Typevector. | |
| Point & | operator= (const Point &p)=default |
| Copy-assignment operator. | |
| template<typename T , typename = typename std::enable_if<ScalarTraits<T>::value,void>::type> | |
| Point (const T x) | |
| Disambiguate constructing from non-Real scalars. | |
| ~Point ()=default | |
| Destructor. | |
| void | assign (const TypeVector< T2 > &) |
| Assign to this vector without creating a temporary. | |
| const Real & | operator() (const unsigned int i) const |
| Real & | operator() (const unsigned int i) |
| const Real & | slice (const unsigned int i) const |
| Real & | slice (const unsigned int i) |
| TypeVector< typename CompareTypes< Real, T2 >::supertype > | operator+ (const TypeVector< T2 > &) const |
| Add two vectors. | |
| const TypeVector< Real > & | operator+= (const TypeVector< T2 > &) |
| Add to this vector. | |
| void | add (const TypeVector< T2 > &) |
| Add to this vector without creating a temporary. | |
| void | add_scaled (const TypeVector< T2 > &, const Real &) |
| Add a scaled value to this vector without creating a temporary. | |
| TypeVector< typename CompareTypes< Real, T2 >::supertype > | operator- (const TypeVector< T2 > &) const |
| Subtract from this vector. | |
| TypeVector< Real > | operator- () const |
| const TypeVector< Real > & | operator-= (const TypeVector< T2 > &) |
| Subtract from this vector. | |
| void | subtract (const TypeVector< T2 > &) |
| Subtract from this vector without creating a temporary. | |
| void | subtract_scaled (const TypeVector< T2 > &, const Real &) |
| Subtract a scaled value from this vector without creating a temporary. | |
| std::enable_if< ScalarTraits< Scalar >::value, TypeVector< typenameCompareTypes< Real, Scalar >::supertype > >::type | operator* (const Scalar &) const |
| Multiply this vector by a scalar value. | |
| CompareTypes< Real, T2 >::supertype | operator* (const TypeVector< T2 > &) const |
| const TypeVector< Real > & | operator*= (const Real &) |
| Multiply this vector by a scalar value. | |
| std::enable_if< ScalarTraits< Scalar >::value, TypeVector< typenameCompareTypes< Real, Scalar >::supertype > >::type | operator/ (const Scalar &) const |
| Divide each entry of this vector by scalar value. | |
| const TypeVector< Real > & | operator/= (const Real &) |
| Divide each entry of this vector by scalar value. | |
| CompareTypes< Real, T2 >::supertype | contract (const TypeVector< T2 > &) const |
| TypeVector< typename CompareTypes< Real, T2 >::supertype > | cross (const TypeVector< T2 > &v) const |
| TypeVector< Real > | unit () const |
| auto | norm () const |
| auto | norm_sq () const |
| auto | l1_norm () const |
| auto | l1_norm () const |
| auto | l1_norm () const |
| bool | is_zero () const |
| void | zero () |
| Set all entries of the vector to 0. | |
| bool | relative_fuzzy_equals (const TypeVector< Real > &rhs, Real tol=TOLERANCE) const |
| bool | absolute_fuzzy_equals (const TypeVector< Real > &rhs, Real tol=TOLERANCE) const |
| bool | operator== (const TypeVector< Real > &rhs) const |
| bool | operator!= (const TypeVector< Real > &rhs) const |
| bool | operator< (const TypeVector< Real > &rhs) const |
| bool | operator< (const TypeVector< Complex > &rhs) const |
| bool | operator<= (const TypeVector< Real > &rhs) const |
| bool | operator<= (const TypeVector< Complex > &rhs) const |
| bool | operator> (const TypeVector< Real > &rhs) const |
| bool | operator> (const TypeVector< Complex > &rhs) const |
| bool | operator>= (const TypeVector< Real > &rhs) const |
| bool | operator>= (const TypeVector< Complex > &rhs) const |
| void | print (std::ostream &os=libMesh::out) const |
Formatted print, by default to libMesh::out. | |
| void | write_unformatted (std::ostream &out_stream, const bool newline=true) const |
Unformatted print to the stream out. | |
Protected Attributes | |
| Real | _coords [LIBMESH_DIM] |
The coordinates of the TypeVector. | |
Friends | |
| class | Node |
| Make the derived class a friend. | |
A Point defines a location in LIBMESH_DIM dimensional Real space.
Points are always real-valued, even if the library is configured with --enable-complex.
A geometric point in (x,y,z) space.
|
inherited |
Helper typedef for generic index programming.
Definition at line 122 of file type_vector.h.
|
inherited |
Helper typedef for C++98 generic programming.
Definition at line 117 of file type_vector.h.
Constructor.
By default sets all entries to 0. Gives the point 0 in LIBMESH_DIM dimensions.
Definition at line 47 of file point.h.
|
default |
Trivial copy-constructor.
|
inline |
Copy-constructor from non-point Typevector.
|
inline |
Disambiguate constructing from non-Real scalars.
|
default |
Destructor.
|
inlineinherited |
true if two vectors are equal to within an absolute tolerance of tol. Definition at line 335 of file type_vector.h.
|
inlineinherited |
Add to this vector without creating a temporary.
Definition at line 189 of file type_vector.h.
|
inlineinherited |
Add a scaled value to this vector without creating a temporary.
Definition at line 195 of file type_vector.h.
|
inlineinherited |
Assign to this vector without creating a temporary.
Definition at line 144 of file type_vector.h.
|
inlineinherited |
Definition at line 283 of file type_vector.h.
|
inherited |
v. Definition at line 290 of file type_vector.h.
|
inlineinherited |
Definition at line 317 of file type_vector.h.
|
inherited |
Definition at line 312 of file type_vector.h.
|
inherited |
|
inherited |
Definition at line 203 of file type_vector.C.
|
inlineinherited |
Definition at line 301 of file type_vector.h.
|
inlineinherited |
Definition at line 307 of file type_vector.h.
|
inlineinherited |
Definition at line 350 of file type_vector.h.
|
inlineinherited |
Definition at line 165 of file type_vector.h.
|
inlineinherited |
Definition at line 159 of file type_vector.h.
|
inlineinherited |
Multiply this vector by a scalar value.
Definition at line 241 of file type_vector.h.
|
inlineinherited |
Definition at line 276 of file type_vector.h.
|
inlineinherited |
Multiply this vector by a scalar value.
Definition at line 248 of file type_vector.h.
|
inlineinherited |
Add two vectors.
Definition at line 175 of file type_vector.h.
|
inlineinherited |
Add to this vector.
Definition at line 183 of file type_vector.h.
|
inlineinherited |
Definition at line 230 of file type_vector.h.
|
inlineinherited |
Subtract from this vector.
Definition at line 204 of file type_vector.h.
|
inlineinherited |
Subtract from this vector.
Definition at line 212 of file type_vector.h.
|
inlineinherited |
Divide each entry of this vector by scalar value.
Definition at line 259 of file type_vector.h.
|
inlineinherited |
Divide each entry of this vector by scalar value.
Definition at line 266 of file type_vector.h.
|
inherited |
Definition at line 124 of file type_vector.C.
|
inherited |
true if this vector is "less" than rhs.Useful for sorting. Also used for choosing some arbitrary basis function orientations.
Definition at line 358 of file type_vector.C.
|
inherited |
Definition at line 143 of file type_vector.C.
|
inherited |
true if this vector is <= to rhs.Useful for sorting. Also used for choosing some arbitrary constraint equation directions.
Definition at line 366 of file type_vector.C.
|
inlineinherited |
true if this(i)==rhs(i) for each component of the vector.absolute_fuzzy_equals() may be a more appropriate choice. Definition at line 345 of file type_vector.h.
|
inherited |
Definition at line 162 of file type_vector.C.
|
inherited |
true if this vector is "greater" than rhs.Useful for sorting. Also used for choosing some arbitrary basis function orientations.
Definition at line 374 of file type_vector.C.
|
inherited |
Definition at line 181 of file type_vector.C.
|
inherited |
true if this vector is >= rhs.Useful for sorting. Also used for choosing some arbitrary constraint equation directions.
Definition at line 382 of file type_vector.C.
|
inherited |
Formatted print, by default to libMesh::out.
Definition at line 387 of file type_vector.h.
|
inlineinherited |
true if two vectors are equal to within a relative tolerance of tol. Definition at line 328 of file type_vector.h.
|
inlineinherited |
Definition at line 166 of file type_vector.h.
|
inlineinherited |
Definition at line 160 of file type_vector.h.
|
inlineinherited |
Subtract from this vector without creating a temporary.
Definition at line 218 of file type_vector.h.
|
inlineinherited |
Subtract a scaled value from this vector without creating a temporary.
Definition at line 225 of file type_vector.h.
|
inlineinherited |
Definition at line 295 of file type_vector.h.
|
inherited |
Unformatted print to the stream out.
Simply prints the elements of the vector separated by spaces. Also prints a newline by default, however, this behavior can be controlled with the newline parameter.
Definition at line 409 of file type_vector.C.
|
inlineinherited |
Set all entries of the vector to 0.
Definition at line 322 of file type_vector.h.
|
protectedinherited |
The coordinates of the TypeVector.
Definition at line 417 of file type_vector.h.