|
libMesh
|
This class defines a tensor in LIBMESH_DIM dimensional Real or Complex space. More...
#include <tensor_value.h>
Classes | |
| struct | rebind |
Public Types | |
| typedef T | value_type |
| typedef std::tuple< unsigned int, unsigned int > | index_type |
| Helper typedef for generic index programming. | |
Public Member Functions | |
| TensorValue () | |
| Empty constructor. | |
| TensorValue (const T &xx, const T &xy=0, const T &xz=0, const T &yx=0, const T &yy=0, const T &yz=0, const T &zx=0, const T &zy=0, const T &zz=0) | |
| Constructor-from-T. | |
| template<typename Scalar > | |
| TensorValue (const Scalar &xx, const Scalar &xy=0, const Scalar &xz=0, const Scalar &yx=0, const Scalar &yy=0, const Scalar &yz=0, const Scalar &zx=0, const Scalar &zy=0, typename std::enable_if< ScalarTraits< Scalar >::value, const Scalar >::type &zz=0) | |
| Constructor-from-scalars. | |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE | TensorValue (const TypeVector< T2 > &vx) |
| Constructor. | |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE | TensorValue (const TypeVector< T2 > &vx, const TypeVector< T2 > &vy) |
| Constructor. | |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE | TensorValue (const TypeVector< T2 > &vx, const TypeVector< T2 > &vy, const TypeVector< T2 > &vz) |
| Constructor. | |
| template<typename T2 > | |
| TensorValue (const TensorValue< T2 > &p) | |
| Copy-constructor. | |
| template<typename T2 > | |
| TensorValue (const TypeTensor< T2 > &p) | |
| Copy-constructor. | |
| TensorValue (const TypeTensor< Real > &p_re, const TypeTensor< Real > &p_im) | |
Constructor that takes two TypeTensor<Real> representing the real and imaginary part as arguments. | |
| template<typename Scalar > | |
| LIBMESH_DEVICE_INLINE std::enable_if< ScalarTraits< Scalar >::value, TensorValue & >::type | operator= (const Scalar &libmesh_dbg_var(p)) |
| Assignment-from-scalar operator. | |
| template<typename Scalar > | |
| LIBMESH_DEVICE_INLINE | TensorValue (const Scalar &xx, const Scalar &xy, const Scalar &xz, const Scalar &yx, const Scalar &yy, const Scalar &yz, const Scalar &zx, const Scalar &zy, typename std::enable_if< ScalarTraits< Scalar >::value, const Scalar >::type &zz) |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE | TensorValue (const TensorValue< T2 > &p) |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE | TensorValue (const TypeTensor< T2 > &p) |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE void | assign (const TypeTensor< T2 > &) |
| Assign to this tensor without creating a temporary. | |
| const T & | operator() (const unsigned int i, const unsigned int j) const |
| T & | operator() (const unsigned int i, const unsigned int j) |
| LIBMESH_DEVICE_INLINE ConstTypeTensorColumn< T > | slice (const unsigned int i) const |
| LIBMESH_DEVICE_INLINE TypeTensorColumn< T > | slice (const unsigned int i) |
| TypeVector< T > | row (const unsigned int r) const |
| LIBMESH_DEVICE_INLINE TypeVector< T > | column (const unsigned int r) const |
| template<typename T2 > | |
| TypeTensor< typename CompareTypes< T, T2 >::supertype > | operator+ (const TypeTensor< T2 > &) const |
| Add another tensor to this tensor. | |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE TypeTensor< typename CompareTypes< T, T2 >::supertype > | operator+ (const TypeTensor< T2 > &p) const |
| template<typename T2 > | |
| const TypeTensor< T > & | operator+= (const TypeTensor< T2 > &) |
| Add to this tensor. | |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE const TypeTensor< T > & | operator+= (const TypeTensor< T2 > &p) |
| template<typename T2 > | |
| void | add (const TypeTensor< T2 > &) |
| Add to this tensor without creating a temporary. | |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE void | add (const TypeTensor< T2 > &p) |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE void | add_scaled (const TypeTensor< T2 > &, const T &) |
| Add a scaled tensor to this tensor without creating a temporary. | |
| template<typename T2 > | |
| TypeTensor< typename CompareTypes< T, T2 >::supertype > | operator- (const TypeTensor< T2 > &) const |
| Subtract a tensor from this tensor. | |
| TypeTensor< T > | operator- () const |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE TypeTensor< typename CompareTypes< T, T2 >::supertype > | operator- (const TypeTensor< T2 > &p) const |
| template<typename T2 > | |
| const TypeTensor< T > & | operator-= (const TypeTensor< T2 > &) |
| Subtract from this tensor. | |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE const TypeTensor< T > & | operator-= (const TypeTensor< T2 > &p) |
| template<typename T2 > | |
| void | subtract (const TypeTensor< T2 > &) |
| Subtract from this tensor without creating a temporary. | |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE void | subtract (const TypeTensor< T2 > &p) |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE void | subtract_scaled (const TypeTensor< T2 > &, const T &) |
| Subtract a scaled value from this tensor without creating a temporary. | |
| template<typename Scalar > | |
| auto | operator* (const Scalar &scalar) const -> typename std::enable_if< ScalarTraits< Scalar >::value, TypeTensor< decltype(T() *scalar)> >::type |
| Multiply this tensor by a scalar value. | |
| template<typename T2 > | |
| TypeTensor< typename CompareTypes< T, T2 >::supertype > | operator* (const TypeTensor< T2 > &) const |
| Multiply 2 tensors together, i.e. | |
| template<typename T2 > | |
| TypeVector< typename CompareTypes< T, T2 >::supertype > | operator* (const TypeVector< T2 > &) const |
| Right-multiply this tensor by a vector, i.e. | |
| template<typename Scalar > | |
| LIBMESH_DEVICE_INLINE auto | operator* (const Scalar &factor) const -> typename std::enable_if< ScalarTraits< Scalar >::value, TypeTensor< decltype(T() *factor)> >::type |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE TypeVector< typename CompareTypes< T, T2 >::supertype > | operator* (const TypeVector< T2 > &p) const |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE TypeTensor< typename CompareTypes< T, T2 >::supertype > | operator* (const TypeTensor< T2 > &p) const |
| template<typename Scalar , typename std::enable_if< ScalarTraits< Scalar >::value, int >::type = 0> | |
| LIBMESH_DEVICE_INLINE const TypeTensor< T > & | operator*= (const Scalar &factor) |
| Multiply this tensor by a scalar value in place. | |
| template<typename T2 > | |
| const TypeTensor< T > & | operator*= (const TypeTensor< T2 > &) |
| Multiply this tensor by a tensor value in place. | |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE const TypeTensor< T > & | operator*= (const TypeTensor< T2 > &p) |
| template<typename Scalar > | |
| std::enable_if< ScalarTraits< Scalar >::value, TypeTensor< typenameCompareTypes< T, Scalar >::supertype > >::type | operator/ (const Scalar &) const |
| Divide each entry of this tensor by a scalar value. | |
| template<typename Scalar > | |
| LIBMESH_DEVICE_INLINE std::enable_if< ScalarTraits< Scalar >::value, TypeTensor< typenameCompareTypes< T, Scalar >::supertype > >::type | operator/ (const Scalar &factor) const |
| const TypeTensor< T > & | operator/= (const T &) |
| Divide each entry of this tensor by a scalar value. | |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE CompareTypes< T, T2 >::supertype | contract (const TypeTensor< T2 > &) const |
| Multiply 2 tensors together to return a scalar, i.e. | |
| template<typename T2 > | |
| LIBMESH_DEVICE_INLINE TypeVector< typename CompareTypes< T, T2 >::supertype > | left_multiply (const TypeVector< T2 > &p) const |
| Left-multiply this tensor by a vector, i.e. | |
| TypeTensor< T > | transpose () const |
| TypeTensor< T > | inverse () const |
| LIBMESH_DEVICE_INLINE void | solve (const TypeVector< T > &b, TypeVector< T > &x) const |
| Solve the 2x2 or 3x3 system of equations A*x = b for x by directly inverting A and multiplying it by b. | |
| auto | norm () const |
| auto | norm_sq () const |
| LIBMESH_DEVICE_INLINE bool | is_zero () const |
| T | det () const |
| T | tr () const |
| LIBMESH_DEVICE_INLINE void | zero () |
| Set all entries of the tensor to 0. | |
| LIBMESH_DEVICE_INLINE bool | operator== (const TypeTensor< T > &rhs) const |
| bool | operator< (const TypeTensor< T > &rhs) const |
| bool | operator< (const TypeTensor< Real > &rhs) const |
| bool | operator< (const TypeTensor< Complex > &rhs) const |
| bool | operator> (const TypeTensor< T > &rhs) const |
| bool | operator> (const TypeTensor< Real > &rhs) const |
| bool | operator> (const TypeTensor< Complex > &rhs) const |
| void | print (std::ostream &os=libMesh::out) const |
Formatted print to a stream which defaults to libMesh::out. | |
| void | write_unformatted (std::ostream &out_stream, const bool newline=true) const |
Unformatted print to the stream out. | |
| bool | is_hpd (Real rel_tol=TOLERANCE *TOLERANCE) const |
| Returns true if the TypeTensor is Hermitian (or symmetric, when T==Real) and positive-definite to within the provided relative tolerance, false otherwise. | |
Static Public Member Functions | |
| static TensorValue< Real > | intrinsic_rotation_matrix (Real phi, Real theta, Real psi) |
| Generate the intrinsic rotation matrix associated with the provided Euler angles. | |
| static TensorValue< Real > | inverse_intrinsic_rotation_matrix (Real phi, Real theta, Real psi) |
Invert the rotation that would occur if the same angles were provided to intrinsic_rotation_matrix, e.g. | |
| static TensorValue< Real > | extrinsic_rotation_matrix (Real angle1_deg, Real angle2_deg, Real angle3_deg) |
| Generate the extrinsic rotation matrix associated with the provided Euler angles. | |
| static TensorValue< Real > | inverse_extrinsic_rotation_matrix (Real angle1_deg, Real angle2_deg, Real angle3_deg) |
Invert the rotation that would occur if the same angles were provided to extrinsic_rotation_matrix, e.g. | |
Protected Attributes | |
| T | _coords [LIBMESH_DIM *LIBMESH_DIM] |
The coordinates of the TypeTensor. | |
This class defines a tensor in LIBMESH_DIM dimensional Real or Complex space.
The typedef RealTensorValue always defines a real-valued tensor, and NumberTensorValue defines a real or complex-valued tensor depending on how the library was configured.
Definition at line 45 of file tensor_value.h.
|
inherited |
Helper typedef for generic index programming.
Definition at line 129 of file type_tensor.h.
| typedef T libMesh::TensorValue< T >::value_type |
Definition at line 48 of file tensor_value.h.
| LIBMESH_DEVICE_INLINE libMesh::TensorValue< T >::TensorValue | ( | ) |
Empty constructor.
Gives the tensor 0 in LIBMESH_DIM dimensional T space.
Definition at line 219 of file tensor_value.h.
|
explicit |
Constructor-from-T.
By default sets higher dimensional entries to 0.
Definition at line 228 of file tensor_value.h.
|
explicit |
Constructor-from-scalars.
By default sets higher dimensional entries to 0.
| LIBMESH_DEVICE_INLINE libMesh::TensorValue< T >::TensorValue | ( | const TypeVector< T2 > & | vx | ) |
Constructor.
Takes 1 row vector for LIBMESH_DIM=1
Definition at line 275 of file tensor_value.h.
| LIBMESH_DEVICE_INLINE libMesh::TensorValue< T >::TensorValue | ( | const TypeVector< T2 > & | vx, |
| const TypeVector< T2 > & | vy | ||
| ) |
Constructor.
Takes 2 row vectors for LIBMESH_DIM=2
Definition at line 285 of file tensor_value.h.
| LIBMESH_DEVICE_INLINE libMesh::TensorValue< T >::TensorValue | ( | const TypeVector< T2 > & | vx, |
| const TypeVector< T2 > & | vy, | ||
| const TypeVector< T2 > & | vz | ||
| ) |
Constructor.
Takes 3 row vectors for LIBMESH_DIM=3
Definition at line 296 of file tensor_value.h.
| libMesh::TensorValue< T >::TensorValue | ( | const TensorValue< T2 > & | p | ) |
Copy-constructor.
| libMesh::TensorValue< T >::TensorValue | ( | const TypeTensor< T2 > & | p | ) |
Copy-constructor.
| LIBMESH_DEVICE_INLINE libMesh::TensorValue< T >::TensorValue | ( | const TypeTensor< Real > & | p_re, |
| const TypeTensor< Real > & | p_im | ||
| ) |
Constructor that takes two TypeTensor<Real> representing the real and imaginary part as arguments.
Definition at line 317 of file tensor_value.h.
| LIBMESH_DEVICE_INLINE libMesh::TensorValue< T >::TensorValue | ( | const Scalar & | xx, |
| const Scalar & | xy, | ||
| const Scalar & | xz, | ||
| const Scalar & | yx, | ||
| const Scalar & | yy, | ||
| const Scalar & | yz, | ||
| const Scalar & | zx, | ||
| const Scalar & | zy, | ||
| typename std::enable_if< ScalarTraits< Scalar >::value, const Scalar >::type & | zz | ||
| ) |
Definition at line 245 of file tensor_value.h.
| LIBMESH_DEVICE_INLINE libMesh::TensorValue< T >::TensorValue | ( | const TensorValue< T2 > & | p | ) |
Definition at line 265 of file tensor_value.h.
| LIBMESH_DEVICE_INLINE libMesh::TensorValue< T >::TensorValue | ( | const TypeTensor< T2 > & | p | ) |
Definition at line 308 of file tensor_value.h.
|
inherited |
Add to this tensor without creating a temporary.
Referenced by NonlinearNeoHookeCurrentConfig::init_for_qp().
|
inherited |
Definition at line 869 of file type_tensor.h.
References libMesh::TypeTensor< T >::_coords.
|
inherited |
Add a scaled tensor to this tensor without creating a temporary.
Definition at line 880 of file type_tensor.h.
References libMesh::TypeTensor< T >::_coords.
Referenced by libMesh::HPCoarsenTest::add_projection(), LargeDeformationElasticity::compute_stresses(), LinearElasticityWithContact::compute_stresses(), libMesh::MeshFunction::hessian(), libMesh::PatchRecoveryErrorEstimator::EstimateError::operator()(), libMesh::WeightedPatchRecoveryErrorEstimator::EstimateError::operator()(), libMesh::System::point_hessian(), and libMesh::HPCoarsenTest::select_refinement().
|
inherited |
Assign to this tensor without creating a temporary.
Definition at line 725 of file type_tensor.h.
References libMesh::TypeTensor< T >::_coords.
|
inherited |
Definition at line 808 of file type_tensor.h.
References libMesh::TypeVector< T >::_coords.
Referenced by TypeTensorTest::testRowCol().
|
inherited |
Multiply 2 tensors together to return a scalar, i.e.
Multiply 2 tensors together, i.e.
\( \sum_{ij} A_{ij} B_{ij} \) The tensors may contain different numeric types. Also known as the "double inner product" or "double dot product" of tensors.
sum Aij*Bij. The tensors may be of different types.
Definition at line 1297 of file type_tensor.h.
References libMesh::TypeTensor< T >::_coords.
Referenced by libMesh::HPCoarsenTest::add_projection(), libMesh::VariationalSmootherSystem::element_time_derivative(), libMesh::TensorTools::inner_product(), and libMesh::HPCoarsenTest::select_refinement().
|
inherited |
Because these are 3x3 tensors at most, we don't do an LU decomposition like DenseMatrix does.
Definition at line 1328 of file type_tensor.h.
Referenced by NonlinearNeoHookeCurrentConfig::calculate_stress(), NonlinearNeoHookeCurrentConfig::calculate_tangent(), libMesh::VariationalSmootherSystem::compute_mesh_quality_info(), LargeDeformationElasticity::compute_stresses(), libMesh::VariationalSmootherSystem::element_time_derivative(), NonlinearNeoHookeCurrentConfig::get_linearized_stiffness(), GradDivExactSolution::grad(), libMeshTest::KokkosTensorOracle::host_leading_determinant(), NonlinearNeoHookeCurrentConfig::init_for_qp(), GradDivExactSolution::operator()(), libMesh::Elem::quality(), libMesh::Hex::quality(), and libMesh::Sphere::Sphere().
|
static |
Generate the extrinsic rotation matrix associated with the provided Euler angles.
An extrinsic rotation rotates the bodies in the domain and leaves the coordinate axes fixed. We follow the convention described at https://en.wikipedia.org/wiki/Euler_angles#Rotation_matrix and we use the matrix described by the 'Proper Euler Angles' column and Z1 X2 Z3 row, which indicates that the rotations are performed sequentially about the z, x, and z axes, in that order. A positive angle yields a counter-clockwise rotation about the axis in question. Note that angles should be provided in degrees
| angle1_deg | rotation angle around z-axis |
| angle2_deg | rotation angle around x-axis (post angle1) |
| angle3_deg | rotation angle around z-axis (post angle1 and angle2) |
Definition at line 376 of file tensor_value.h.
References libMesh::libmesh_ignore(), and libMesh::pi.
Referenced by libMesh::TensorValue< T >::inverse_extrinsic_rotation_matrix(), libMeshTest::KokkosTensorOracle::test_tensor_host_only_ops(), and TypeTensorTest::testRotation().
|
static |
Generate the intrinsic rotation matrix associated with the provided Euler angles.
An intrinsic rotation leaves bodies in the domain fixed while rotating the coordinate axes. We follow the convention described at http://mathworld.wolfram.com/EulerAngles.html (equations 6-14 give the entries of the composite transformation matrix). The rotations are performed sequentially about the z, x', and z'' axes, in that order. A positive angle for a given step in the rotation sequences gives the appearance of rotating an entity in the domain counter-clockwise around the rotation axis, although in fact it is the coordinate axes themselves that are rotating. In order to give the appearance of a body rotating counter-clockwise, we actually rotate the coordinate axes by the \emph negative of the angle passed into the method. All angles should be provided in degrees
| phi | The \emph negative of the angle we will rotate the coordinate axes around the original z-axis |
| theta | The \emph negative of the angle we will rotate the coordinate axes around the "current" x-axis (post phi), e.g. x' |
| psi | The \emph negative of the angle we will rotate the coordinate axes around the "current" z-axis (post phi and theta), e.g. z'' |
Definition at line 334 of file tensor_value.h.
References libMesh::libmesh_ignore(), libMesh::pi, and libMesh::Real.
Referenced by libMesh::TensorValue< T >::inverse_intrinsic_rotation_matrix(), and libMesh::MeshTools::Modification::rotate().
|
inherited |
Definition at line 1109 of file type_tensor.h.
References b.
Referenced by NonlinearNeoHookeCurrentConfig::calculate_stress(), libMesh::VariationalSmootherSystem::element_time_derivative(), libMesh::VariationalSmootherSystem::get_target_to_reference_jacobian(), libMeshTest::KokkosTensorOracle::host_leading_inverse(), NonlinearNeoHookeCurrentConfig::init_for_qp(), libMesh::Elem::quality(), and TypeTensorTest::testInverse().
|
static |
Invert the rotation that would occur if the same angles were provided to extrinsic_rotation_matrix, e.g.
return to the original starting point
Definition at line 408 of file tensor_value.h.
References libMesh::TensorValue< T >::extrinsic_rotation_matrix(), and libMesh::TypeTensor< T >::transpose().
Referenced by libMeshTest::KokkosTensorOracle::test_tensor_host_only_ops(), and TypeTensorTest::testRotation().
|
static |
Invert the rotation that would occur if the same angles were provided to intrinsic_rotation_matrix, e.g.
return to the original starting point. All angles should be provided in degrees
Definition at line 368 of file tensor_value.h.
References libMesh::TensorValue< T >::intrinsic_rotation_matrix(), and libMesh::TypeTensor< T >::transpose().
|
inherited |
Returns true if the TypeTensor is Hermitian (or symmetric, when T==Real) and positive-definite to within the provided relative tolerance, false otherwise.
Definition at line 67 of file type_tensor.C.
References libMesh::libmesh_conj(), and std::real().
Referenced by libMeshTest::KokkosTensorOracle::test_tensor_host_only_ops(), and TypeTensorTest::testIsHPD().
|
inherited |
Definition at line 1318 of file type_tensor.h.
Referenced by libMeshTest::KokkosTensorOracle::test_tensor_ops(), and TypeTensorTest::testIsZero().
|
inherited |
Left-multiply this tensor by a vector, i.e.
matrix-vector product. The tensor and vector may contain different numeric types.
Definition at line 1240 of file type_tensor.h.
Referenced by AzimuthalPeriodicBoundary::get_corresponding_pos().
|
inherited |
Definition at line 1309 of file type_tensor.h.
|
inherited |
Definition at line 1378 of file type_tensor.h.
References libMesh::TensorTools::norm_sq(), and libMesh::Real.
Referenced by libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::ExactErrorEstimator::find_squared_element_error(), libMesh::TensorTools::norm_sq(), libMesh::TensorTools::norm_sq(), and libMesh::HPCoarsenTest::select_refinement().
|
inherited |
Definition at line 754 of file type_tensor.h.
|
inherited |
Definition at line 735 of file type_tensor.h.
|
inherited |
Definition at line 994 of file type_tensor.h.
|
inherited |
Multiply this tensor by a scalar value.
|
inherited |
Multiply 2 tensors together, i.e.
matrix-matrix product. The tensors may contain different numeric types.
|
inherited |
Definition at line 1262 of file type_tensor.h.
|
inherited |
Right-multiply this tensor by a vector, i.e.
matrix-vector product. The tensor and vector may contain different numeric types.
|
inherited |
Definition at line 1226 of file type_tensor.h.
|
inlineinherited |
Multiply this tensor by a scalar value in place.
Definition at line 281 of file type_tensor.h.
References libMesh::TypeTensor< T >::_coords.
|
inherited |
Multiply this tensor by a tensor value in place.
|
inherited |
Definition at line 1276 of file type_tensor.h.
|
inherited |
Add another tensor to this tensor.
|
inherited |
Definition at line 823 of file type_tensor.h.
References libMesh::TypeTensor< T >::_coords.
|
inherited |
Add to this tensor.
|
inherited |
Definition at line 857 of file type_tensor.h.
|
inherited |
Definition at line 960 of file type_tensor.h.
|
inherited |
Subtract a tensor from this tensor.
|
inherited |
Definition at line 893 of file type_tensor.h.
References libMesh::TypeTensor< T >::_coords.
|
inherited |
Subtract from this tensor.
|
inherited |
Definition at line 927 of file type_tensor.h.
|
inherited |
Divide each entry of this tensor by a scalar value.
|
inherited |
Definition at line 1044 of file type_tensor.h.
|
inherited |
Divide each entry of this tensor by a scalar value.
Definition at line 1209 of file type_tensor.h.
|
inherited |
Definition at line 157 of file type_tensor.C.
|
inherited |
Definition at line 124 of file type_tensor.C.
|
inherited |
true if this tensor is "less" than another. Useful for sorting.
|
inline |
Assignment-from-scalar operator.
Used only to zero out tensors.
Definition at line 149 of file tensor_value.h.
References libMesh::TypeTensor< T >::zero().
|
inherited |
true if two tensors are equal, false otherwise. Definition at line 1390 of file type_tensor.h.
References libMesh::TypeTensor< T >::_coords, and libMesh::TOLERANCE.
|
inherited |
Definition at line 177 of file type_tensor.C.
|
inherited |
Definition at line 140 of file type_tensor.C.
|
inherited |
true if this tensor is "greater" than another.
|
inherited |
Formatted print to a stream which defaults to libMesh::out.
Definition at line 1421 of file type_tensor.h.
|
inherited |
Definition at line 794 of file type_tensor.h.
References libMesh::TypeVector< T >::_coords.
Referenced by SolutionGradient< dim >::component(), SolutionGradient< dim >::operator()(), and TypeTensorTest::testRowCol().
|
inherited |
Definition at line 784 of file type_tensor.h.
|
inherited |
Definition at line 774 of file type_tensor.h.
|
inherited |
Solve the 2x2 or 3x3 system of equations A*x = b for x by directly inverting A and multiplying it by b.
x vector. Definition at line 1158 of file type_tensor.h.
References b.
Referenced by InfFERadialTest::base_point(), and libMesh::InfFEMap::inverse_map().
|
inherited |
Subtract from this tensor without creating a temporary.
|
inherited |
Definition at line 939 of file type_tensor.h.
References libMesh::TypeTensor< T >::_coords.
|
inherited |
Subtract a scaled value from this tensor without creating a temporary.
Definition at line 950 of file type_tensor.h.
References libMesh::TypeTensor< T >::_coords.
Referenced by libMesh::HPCoarsenTest::select_refinement().
|
inherited |
Definition at line 1351 of file type_tensor.h.
|
inherited |
Definition at line 1079 of file type_tensor.h.
Referenced by assemble_shell(), NonlinearNeoHookeCurrentConfig::calculate_stress(), libMesh::VariationalSmootherSystem::compute_mesh_quality_info(), LargeDeformationElasticity::compute_stresses(), libMesh::VariationalSmootherSystem::element_time_derivative(), libMesh::get_jacobian_at_qp(), GradDivExactSolution::grad(), CurlCurlExactSolution::grad(), libMesh::TensorValue< T >::inverse_extrinsic_rotation_matrix(), libMesh::TensorValue< T >::inverse_intrinsic_rotation_matrix(), GradDivExactSolution::operator()(), CurlCurlExactSolution::operator()(), and TypeTensorTest::testIsHPD().
|
inherited |
Unformatted print to the stream out.
Simply prints the elements of the tensor separated by spaces and newlines.
Definition at line 39 of file type_tensor.C.
References libMesh::libmesh_assert().
|
inherited |
Set all entries of the tensor to 0.
Definition at line 1368 of file type_tensor.h.
Referenced by libMeshTest::KokkosTensorOracle::build_identity_tensor(), LargeDeformationElasticity::compute_stresses(), LinearElasticityWithContact::compute_stresses(), libMeshTest::KokkosTensorOracle::host_leading_inverse(), NonlinearNeoHookeCurrentConfig::init_for_qp(), libMeshTest::KokkosTensorOracle::make_host_tensor(), libMesh::TensorValue< T >::operator=(), and libMesh::TypeTensor< T >::operator=().
|
protectedinherited |
The coordinates of the TypeTensor.
Definition at line 470 of file type_tensor.h.
Referenced by libMesh::TypeTensor< T >::add(), libMesh::TypeTensor< T >::add_scaled(), libMesh::TypeTensor< T >::assign(), libMesh::TypeTensor< T >::contract(), libMesh::TypeTensor< T >::operator*=(), libMesh::TypeTensor< T >::operator+(), libMesh::TypeTensor< T >::operator-(), libMesh::TypeTensor< T >::operator==(), libMesh::TypeTensor< T >::subtract(), libMesh::TypeTensor< T >::subtract_scaled(), and libMesh::TypeTensor< T >::TypeTensor().