|
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 | |
| LIBMESH_DEVICE_INLINE | Point (const Real x=0., const Real y=0., const Real z=0.) |
| Constructor. | |
| LIBMESH_DEVICE_INLINE | Point (const Point &p)=default |
| Trivial copy-constructor. | |
| LIBMESH_DEVICE_INLINE | Point (const TypeVector< Real > &p) |
| Copy-constructor from non-point Typevector. | |
| LIBMESH_DEVICE_INLINE Point & | operator= (const Point &p)=default |
| Copy-assignment operator. | |
| template<typename T , typename = typename std::enable_if<ScalarTraits<T>::value,void>::type> | |
| LIBMESH_DEVICE_INLINE | Point (const T x) |
| Disambiguate constructing from non-Real scalars. | |
| ~Point ()=default | |
| Destructor. | |
| LIBMESH_DEVICE_INLINE 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) |
| LIBMESH_DEVICE_INLINE const Real & | slice (const unsigned int i) const |
| LIBMESH_DEVICE_INLINE Real & | slice (const unsigned int i) |
| TypeVector< typename CompareTypes< Real, T2 >::supertype > | operator+ (const TypeVector< T2 > &) const |
| Add two vectors. | |
| LIBMESH_DEVICE_INLINE TypeVector< typename CompareTypes< Real, T2 >::supertype > | operator+ (const TypeVector< T2 > &p) const |
| const TypeVector< Real > & | operator+= (const TypeVector< T2 > &) |
| Add to this vector. | |
| LIBMESH_DEVICE_INLINE const TypeVector< Real > & | operator+= (const TypeVector< T2 > &p) |
| void | add (const TypeVector< T2 > &) |
| Add to this vector without creating a temporary. | |
| LIBMESH_DEVICE_INLINE void | add (const TypeVector< T2 > &p) |
| LIBMESH_DEVICE_INLINE 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 |
| LIBMESH_DEVICE_INLINE TypeVector< typename CompareTypes< Real, T2 >::supertype > | operator- (const TypeVector< T2 > &p) const |
| const TypeVector< Real > & | operator-= (const TypeVector< T2 > &) |
| Subtract from this vector. | |
| LIBMESH_DEVICE_INLINE const TypeVector< Real > & | operator-= (const TypeVector< T2 > &p) |
| void | subtract (const TypeVector< T2 > &) |
| Subtract from this vector without creating a temporary. | |
| LIBMESH_DEVICE_INLINE void | subtract (const TypeVector< T2 > &p) |
| LIBMESH_DEVICE_INLINE 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 |
| LIBMESH_DEVICE_INLINE std::enable_if< ScalarTraits< Scalar >::value, TypeVector< typenameCompareTypes< Real, Scalar >::supertype > >::type | operator* (const Scalar &factor) const |
| LIBMESH_DEVICE_INLINE CompareTypes< Real, T2 >::supertype | operator* (const TypeVector< T2 > &p) 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. | |
| LIBMESH_DEVICE_INLINE std::enable_if< ScalarTraits< Scalar >::value, TypeVector< typenameCompareTypes< Real, Scalar >::supertype > >::type | operator/ (const Scalar &factor) const |
| const TypeVector< Real > & | operator/= (const Real &) |
| Divide each entry of this vector by scalar value. | |
| LIBMESH_DEVICE_INLINE CompareTypes< Real, T2 >::supertype | contract (const TypeVector< T2 > &) const |
| TypeVector< typename CompareTypes< Real, T2 >::supertype > | cross (const TypeVector< T2 > &v) const |
| LIBMESH_DEVICE_INLINE TypeVector< typename CompareTypes< Real, T2 >::supertype > | cross (const TypeVector< T2 > &p) const |
| LIBMESH_DEVICE_INLINE TypeVector< Real > | unit () const |
| auto | norm () const |
| auto | norm () const |
| auto | norm () const |
| auto | norm () const |
| auto | norm () const |
| auto | norm_sq () const |
| LIBMESH_DEVICE_INLINE auto | l1_norm () const |
| auto | l1_norm () const |
| auto | l1_norm () const |
| LIBMESH_DEVICE_INLINE bool | is_zero () const |
| LIBMESH_DEVICE_INLINE 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 |
| LIBMESH_DEVICE_INLINE bool | operator== (const TypeVector< Real > &rhs) const |
| LIBMESH_DEVICE_INLINE 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 123 of file type_vector.h.
|
inherited |
Helper typedef for C++98 generic programming.
Definition at line 118 of file type_vector.h.
|
inline |
Constructor.
By default sets all entries to 0. Gives the point 0 in LIBMESH_DIM dimensions.
Definition at line 49 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 347 of file type_vector.h.
|
inherited |
Add to this vector without creating a temporary.
|
inherited |
Definition at line 619 of file type_vector.h.
|
inherited |
Add a scaled value to this vector without creating a temporary.
Definition at line 201 of file type_vector.h.
|
inherited |
Assign to this vector without creating a temporary.
Definition at line 146 of file type_vector.h.
|
inherited |
Definition at line 291 of file type_vector.h.
|
inherited |
Definition at line 900 of file type_vector.h.
|
inherited |
v.
|
inherited |
Definition at line 328 of file type_vector.h.
|
inherited |
Definition at line 322 of file type_vector.h.
|
inherited |
|
inherited |
Definition at line 203 of file type_vector.C.
|
inherited |
Definition at line 310 of file type_vector.h.
|
inlineinherited |
Definition at line 978 of file type_vector.h.
|
inlineinherited |
Definition at line 986 of file type_vector.h.
|
inlineinherited |
Definition at line 994 of file type_vector.h.
|
inlineinherited |
Definition at line 1006 of file type_vector.h.
|
inherited |
Definition at line 316 of file type_vector.h.
|
inherited |
Definition at line 364 of file type_vector.h.
|
inherited |
Definition at line 169 of file type_vector.h.
|
inherited |
Definition at line 162 of file type_vector.h.
|
inherited |
Multiply this vector by a scalar value.
|
inherited |
Definition at line 755 of file type_vector.h.
|
inherited |
|
inherited |
Definition at line 867 of file type_vector.h.
|
inherited |
Multiply this vector by a scalar value.
Definition at line 255 of file type_vector.h.
|
inherited |
Add two vectors.
|
inherited |
Definition at line 582 of file type_vector.h.
|
inherited |
Add to this vector.
|
inherited |
Definition at line 607 of file type_vector.h.
|
inherited |
Definition at line 237 of file type_vector.h.
|
inherited |
Subtract from this vector.
|
inherited |
Definition at line 668 of file type_vector.h.
|
inherited |
Subtract from this vector.
|
inherited |
Definition at line 694 of file type_vector.h.
|
inherited |
Divide each entry of this vector by scalar value.
|
inherited |
Definition at line 820 of file type_vector.h.
|
inherited |
Divide each entry of this vector by scalar value.
Definition at line 273 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 372 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 380 of file type_vector.C.
Copy-assignment operator.
|
inherited |
true if this(i)==rhs(i) for each component of the vector.absolute_fuzzy_equals() may be a more appropriate choice. Definition at line 358 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 388 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 396 of file type_vector.C.
|
inherited |
Formatted print, by default to libMesh::out.
Definition at line 401 of file type_vector.h.
|
inlineinherited |
true if two vectors are equal to within a relative tolerance of tol. Definition at line 340 of file type_vector.h.
|
inlineinherited |
Definition at line 171 of file type_vector.h.
|
inlineinherited |
Definition at line 164 of file type_vector.h.
|
inherited |
Subtract from this vector without creating a temporary.
|
inherited |
Definition at line 706 of file type_vector.h.
|
inherited |
Subtract a scaled value from this vector without creating a temporary.
Definition at line 232 of file type_vector.h.
|
inherited |
Definition at line 304 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 423 of file type_vector.C.
|
inherited |
Set all entries of the vector to 0.
Definition at line 334 of file type_vector.h.
|
protectedinherited |
The coordinates of the TypeVector.
Definition at line 431 of file type_vector.h.