SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
Tensor Class Reference

#include <Tensor.h>

Public Member Functions

 Tensor ()
 
 Tensor (const Tensor &)
 
 Tensor (int)
 Initialize the diagonal to this value. More...
 
 Tensor (double)
 Initialize the diagonal to this value. More...
 
 Tensor (double, double, double, double, double, double)
 
 Tensor (const Array1< double > &)
 
 Tensor (const std::vector< double > &)
 
 Tensor (const double *)
 
 Tensor (const double **)
 
 Tensor (const Vector &, const Vector &, const Vector &)
 
Tensoroperator= (const Tensor &)
 
Tensoroperator= (const double &)
 
bool operator== (const Tensor &) const
 
bool operator!= (const Tensor &) const
 
Tensor operator+ (const Tensor &) const
 
Tensoroperator+= (const Tensor &)
 
Tensor operator- (const Tensor &) const
 
Tensoroperator-= (const Tensor &)
 
Tensor operator* (const double) const
 
Vector operator* (const Vector) const
 
void build_mat_from_eigens ()
 
void build_eigens_from_mat ()
 
void get_eigenvectors (Vector &e1, Vector &e2, Vector &e3)
 
const Vectorget_eigenvector1 ()
 
const Vectorget_eigenvector2 ()
 
const Vectorget_eigenvector3 ()
 
void get_eigenvalues (double &l1, double &l2, double &l3)
 
double norm ()
 
bool have_eigens ()
 
void set_eigens (const Vector &e1, const Vector &e2, const Vector &e3)
 
void set_outside_eigens (const Vector &e1, const Vector &e2, const Vector &e3, double v1, double v2, double v3)
 
double xx () const
 
double xy () const
 
double xz () const
 
double yy () const
 
double yz () const
 
double zz () const
 

Static Public Member Functions

static std::string type_name (int i=-1)
 
static const std::string & get_h_file_path ()
 support dynamic compilation More...
 

Public Attributes

double mat_ [3][3]
 

Friends

SCISHARE void Pio (Piostream &, Tensor &)
 

Constructor & Destructor Documentation

Tensor ( )
Tensor ( const Tensor copy)
Tensor ( int  v)
explicit

Initialize the diagonal to this value.

Tensor ( double  v)
explicit

Initialize the diagonal to this value.

Tensor ( double  v1,
double  v2,
double  v3,
double  v4,
double  v5,
double  v6 
)
Tensor ( const Array1< double > &  t)
explicit
Tensor ( const std::vector< double > &  t)
explicit
Tensor ( const double *  t)
explicit
Tensor ( const double **  cmat)
explicit
Tensor ( const Vector e1,
const Vector e2,
const Vector e3 
)

Member Function Documentation

void build_eigens_from_mat ( )
void build_mat_from_eigens ( )
void get_eigenvalues ( double &  l1,
double &  l2,
double &  l3 
)
const Vector& get_eigenvector1 ( )
inline
const Vector& get_eigenvector2 ( )
inline
const Vector& get_eigenvector3 ( )
inline
void get_eigenvectors ( Vector e1,
Vector e2,
Vector e3 
)
const std::string & get_h_file_path ( )
static

support dynamic compilation

bool have_eigens ( )
inline
double norm ( )
bool operator!= ( const Tensor t) const
Tensor operator* ( const double  s) const
Vector operator* ( const Vector  v) const
Tensor operator+ ( const Tensor t) const
Tensor & operator+= ( const Tensor t)
Tensor operator- ( const Tensor t) const
Tensor & operator-= ( const Tensor t)
Tensor & operator= ( const Tensor copy)
Tensor & operator= ( const double &  d)
bool operator== ( const Tensor t) const
void set_eigens ( const Vector e1,
const Vector e2,
const Vector e3 
)
void set_outside_eigens ( const Vector e1,
const Vector e2,
const Vector e3,
double  v1,
double  v2,
double  v3 
)
std::string type_name ( int  i = -1)
static
double xx ( ) const
inline
double xy ( ) const
inline
double xz ( ) const
inline
double yy ( ) const
inline
double yz ( ) const
inline
double zz ( ) const
inline

Friends And Related Function Documentation

SCISHARE void Pio ( Piostream ,
Tensor  
)
friend

Member Data Documentation

double mat_[3][3]

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