gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
STensor3 Class Reference

#include <STensor3.h>

Public Member Functions

 STensor3 (const double v=0.0)
 
 STensor3 (const STensor3 &other)
 
int getIndex (int i, int j) const
 
void set_m11 (double x)
 
void set_m21 (double x)
 
void set_m31 (double x)
 
void set_m12 (double x)
 
void set_m22 (double x)
 
void set_m32 (double x)
 
void set_m13 (double x)
 
void set_m23 (double x)
 
void set_m33 (double x)
 
double get_m11 ()
 
double get_m21 ()
 
double get_m31 ()
 
double get_m12 ()
 
double get_m22 ()
 
double get_m32 ()
 
double get_m13 ()
 
double get_m23 ()
 
double get_m33 ()
 
const double * data () const
 
double * data ()
 
void getMat (fullMatrix< double > &mat) const
 
void setMat (const fullMatrix< double > &mat)
 
double & operator() (int i, int j)
 
double operator() (int i, int j) const
 
double operator[] (int i) const
 
double & operator[] (int i)
 
STensor3 invert () const
 
STensor3 transpose () const
 
STensor3operator= (const STensor3 &other)
 
STensor3 operator+ (const STensor3 &other) const
 
STensor3operator+= (const STensor3 &other)
 
STensor3operator*= (const double &other)
 
STensor3operator*= (const STensor3 &other)
 
void operator-= (const STensor3 &other)
 
void daxpy (const STensor3 &other, const double alpha=1.)
 
double trace () const
 
double dotprod () const
 
double determinant () const
 
double norm0 () const
 
double norm2 () const
 
STensor3 dev () const
 
void eig (fullMatrix< double > &V, fullVector< double > &S, bool s=false) const
 
void print (const char *) const
 

Protected Attributes

double _val [9]
 

Detailed Description

Definition at line 97 of file STensor3.h.

Constructor & Destructor Documentation

◆ STensor3() [1/2]

STensor3::STensor3 ( const double  v = 0.0)
inline

Definition at line 104 of file STensor3.h.

◆ STensor3() [2/2]

STensor3::STensor3 ( const STensor3 other)
inline

Definition at line 110 of file STensor3.h.

Member Function Documentation

◆ data() [1/2]

double* STensor3::data ( )
inline

Definition at line 138 of file STensor3.h.

◆ data() [2/2]

const double* STensor3::data ( ) const
inline

Definition at line 137 of file STensor3.h.

◆ daxpy()

void STensor3::daxpy ( const STensor3 other,
const double  alpha = 1. 
)
inline

Definition at line 232 of file STensor3.h.

◆ determinant()

double STensor3::determinant ( ) const
inline

Definition at line 247 of file STensor3.h.

Referenced by invert().

Here is the caller graph for this function:

◆ dev()

STensor3 STensor3::dev ( ) const
inline

Definition at line 275 of file STensor3.h.

Here is the call graph for this function:

◆ dotprod()

double STensor3::dotprod ( ) const
inline

Definition at line 240 of file STensor3.h.

◆ eig()

void STensor3::eig ( fullMatrix< double > &  V,
fullVector< double > &  S,
bool  s = false 
) const

Definition at line 315 of file STensor3.cpp.

Here is the call graph for this function:

◆ get_m11()

double STensor3::get_m11 ( )
inline

Definition at line 128 of file STensor3.h.

◆ get_m12()

double STensor3::get_m12 ( )
inline

Definition at line 131 of file STensor3.h.

◆ get_m13()

double STensor3::get_m13 ( )
inline

Definition at line 134 of file STensor3.h.

◆ get_m21()

double STensor3::get_m21 ( )
inline

Definition at line 129 of file STensor3.h.

◆ get_m22()

double STensor3::get_m22 ( )
inline

Definition at line 132 of file STensor3.h.

◆ get_m23()

double STensor3::get_m23 ( )
inline

Definition at line 135 of file STensor3.h.

◆ get_m31()

double STensor3::get_m31 ( )
inline

Definition at line 130 of file STensor3.h.

◆ get_m32()

double STensor3::get_m32 ( )
inline

Definition at line 133 of file STensor3.h.

◆ get_m33()

double STensor3::get_m33 ( )
inline

Definition at line 136 of file STensor3.h.

◆ getIndex()

int STensor3::getIndex ( int  i,
int  j 
) const
inline

Definition at line 114 of file STensor3.h.

Referenced by getMat(), operator()(), and setMat().

Here is the caller graph for this function:

◆ getMat()

void STensor3::getMat ( fullMatrix< double > &  mat) const

Definition at line 302 of file STensor3.cpp.

Referenced by eig().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ invert()

STensor3 STensor3::invert ( ) const
inline

Definition at line 145 of file STensor3.h.

Here is the call graph for this function:

◆ norm0()

double STensor3::norm0 ( ) const
inline

Definition at line 258 of file STensor3.h.

◆ norm2()

double STensor3::norm2 ( ) const
inline

Definition at line 265 of file STensor3.h.

Here is the call graph for this function:

◆ operator()() [1/2]

double& STensor3::operator() ( int  i,
int  j 
)
inline

Definition at line 141 of file STensor3.h.

Referenced by norm2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()() [2/2]

double STensor3::operator() ( int  i,
int  j 
) const
inline

Definition at line 142 of file STensor3.h.

Here is the call graph for this function:

◆ operator*=() [1/2]

STensor3& STensor3::operator*= ( const double &  other)
inline

Definition at line 197 of file STensor3.h.

◆ operator*=() [2/2]

STensor3& STensor3::operator*= ( const STensor3 other)
inline

Definition at line 202 of file STensor3.h.

◆ operator+()

STensor3 STensor3::operator+ ( const STensor3 other) const
inline

Definition at line 186 of file STensor3.h.

◆ operator+=()

STensor3& STensor3::operator+= ( const STensor3 other)
inline

Definition at line 192 of file STensor3.h.

◆ operator-=()

void STensor3::operator-= ( const STensor3 other)
inline

Definition at line 228 of file STensor3.h.

◆ operator=()

STensor3& STensor3::operator= ( const STensor3 other)
inline

Definition at line 181 of file STensor3.h.

◆ operator[]() [1/2]

double& STensor3::operator[] ( int  i)
inline

Definition at line 144 of file STensor3.h.

◆ operator[]() [2/2]

double STensor3::operator[] ( int  i) const
inline

Definition at line 143 of file STensor3.h.

◆ print()

void STensor3::print ( const char *  s) const

Definition at line 323 of file STensor3.cpp.

◆ set_m11()

void STensor3::set_m11 ( double  x)
inline

Definition at line 119 of file STensor3.h.

◆ set_m12()

void STensor3::set_m12 ( double  x)
inline

Definition at line 122 of file STensor3.h.

◆ set_m13()

void STensor3::set_m13 ( double  x)
inline

Definition at line 125 of file STensor3.h.

◆ set_m21()

void STensor3::set_m21 ( double  x)
inline

Definition at line 120 of file STensor3.h.

◆ set_m22()

void STensor3::set_m22 ( double  x)
inline

Definition at line 123 of file STensor3.h.

◆ set_m23()

void STensor3::set_m23 ( double  x)
inline

Definition at line 126 of file STensor3.h.

◆ set_m31()

void STensor3::set_m31 ( double  x)
inline

Definition at line 121 of file STensor3.h.

◆ set_m32()

void STensor3::set_m32 ( double  x)
inline

Definition at line 124 of file STensor3.h.

◆ set_m33()

void STensor3::set_m33 ( double  x)
inline

Definition at line 127 of file STensor3.h.

◆ setMat()

void STensor3::setMat ( const fullMatrix< double > &  mat)

Definition at line 309 of file STensor3.cpp.

Here is the call graph for this function:

◆ trace()

double STensor3::trace ( ) const
inline

Definition at line 239 of file STensor3.h.

Referenced by dev().

Here is the caller graph for this function:

◆ transpose()

STensor3 STensor3::transpose ( ) const
inline

Definition at line 174 of file STensor3.h.

Member Data Documentation

◆ _val


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