26 #include "libmesh/type_tensor.h" 40 const bool newline)
const 44 out_stream << std::setiosflags(std::ios::showpoint)
45 << (*this)(0,0) <<
" " 46 << (*
this)(0,1) <<
" " 47 << (*
this)(0,2) <<
" ";
51 out_stream << std::setiosflags(std::ios::showpoint)
52 << (*this)(1,0) <<
" " 53 << (*
this)(1,1) <<
" " 54 << (*
this)(1,2) <<
" ";
58 out_stream << std::setiosflags(std::ios::showpoint)
59 << (*this)(2,0) <<
" " 60 << (*
this)(2,1) <<
" " 61 << (*
this)(2,2) <<
" ";
71 for (
unsigned int i=0; i<LIBMESH_DIM; i++)
72 for (
unsigned int j=0; j<LIBMESH_DIM; j++)
74 if ((*
this)(i,j) < rhs(i,j))
76 if ((*
this)(i,j) > rhs(i,j))
87 for (
unsigned int i=0; i<LIBMESH_DIM; i++)
88 for (
unsigned int j=0; j<LIBMESH_DIM; j++)
90 if ((*
this)(i,j) > rhs(i,j))
92 if ((*
this)(i,j) < rhs(i,j))
100 #ifdef LIBMESH_USE_COMPLEX_NUMBERS 104 for (
unsigned int i=0; i<LIBMESH_DIM; i++)
105 for (
unsigned int j=0; j<LIBMESH_DIM; j++)
107 if ((*
this)(i,j).
real() < rhs(i,j).
real())
109 if ((*
this)(i,j).
real() > rhs(i,j).
real())
111 if ((*
this)(i,j).
imag() < rhs(i,j).
imag())
113 if ((*
this)(i,j).
imag() > rhs(i,j).
imag())
124 for (
unsigned int i=0; i<LIBMESH_DIM; i++)
125 for (
unsigned int j=0; j<LIBMESH_DIM; j++)
127 if ((*
this)(i,j).
real() > rhs(i,j).
real())
129 if ((*
this)(i,j).
real() < rhs(i,j).
real())
131 if ((*
this)(i,j).
imag() > rhs(i,j).
imag())
133 if ((*
this)(i,j).
imag() < rhs(i,j).
imag())
149 #ifdef LIBMESH_USE_COMPLEX_NUMBERS boost::multiprecision::float128 real(const boost::multiprecision::float128 in)
bool operator<(const TypeTensor< T > &rhs) const
The libMesh namespace provides an interface to certain functionality in the library.
This class defines a tensor in LIBMESH_DIM dimensional space of type T.
void write_unformatted(std::ostream &out_stream, const bool newline=true) const
Unformatted print to the stream out.
boost::multiprecision::float128 imag(const boost::multiprecision::float128)
bool operator>(const TypeTensor< T > &rhs) const