TypeTensor< T > Class Template Reference

#include <tensor_tools.h>

Public Member Functions

template<>
bool operator< (const TypeTensor< Real > &rhs) const
 
template<>
bool operator> (const TypeTensor< Real > &rhs) const
 
template<>
bool operator< (const TypeTensor< Complex > &rhs) const
 
template<>
bool operator> (const TypeTensor< Complex > &rhs) const
 

Detailed Description

template<typename T>
class TypeTensor< T >

Definition at line 32 of file tensor_tools.h.

Member Function Documentation

template<>
bool TypeTensor< Real >::operator< ( const TypeTensor< Real > &  rhs) const

Definition at line 113 of file type_tensor.C.

{
for (unsigned int i=0; i<LIBMESH_DIM; i++)
for (unsigned int j=0; j<LIBMESH_DIM; j++)
{
if ((*this)(i,j) < rhs(i,j))
return true;
if ((*this)(i,j) > rhs(i,j))
return false;
}
return false;
}
template<>
bool TypeTensor< Complex >::operator< ( const TypeTensor< Complex > &  rhs) const

Definition at line 146 of file type_tensor.C.

{
for (unsigned int i=0; i<LIBMESH_DIM; i++)
for (unsigned int j=0; j<LIBMESH_DIM; j++)
{
if ((*this)(i,j).real() < rhs(i,j).real())
return true;
if ((*this)(i,j).real() > rhs(i,j).real())
return false;
if ((*this)(i,j).imag() < rhs(i,j).imag())
return true;
if ((*this)(i,j).imag() > rhs(i,j).imag())
return false;
}
return false;
}
template<>
bool TypeTensor< Real >::operator> ( const TypeTensor< Real > &  rhs) const

Definition at line 129 of file type_tensor.C.

{
for (unsigned int i=0; i<LIBMESH_DIM; i++)
for (unsigned int j=0; j<LIBMESH_DIM; j++)
{
if ((*this)(i,j) > rhs(i,j))
return true;
if ((*this)(i,j) < rhs(i,j))
return false;
}
return false;
}
template<>
bool TypeTensor< Complex >::operator> ( const TypeTensor< Complex > &  rhs) const

Definition at line 166 of file type_tensor.C.

{
for (unsigned int i=0; i<LIBMESH_DIM; i++)
for (unsigned int j=0; j<LIBMESH_DIM; j++)
{
if ((*this)(i,j).real() > rhs(i,j).real())
return true;
if ((*this)(i,j).real() < rhs(i,j).real())
return false;
if ((*this)(i,j).imag() > rhs(i,j).imag())
return true;
if ((*this)(i,j).imag() < rhs(i,j).imag())
return false;
}
return false;
}

The documentation for this class was generated from the following file:

Site Created By: libMesh Developers
Last modified: January 12 2013 15:00:43 UTC

Hosted By:
SourceForge.net Logo