SPH
|
#include <AntisymmetricTensor.h>
Public Member Functions | |
AntisymmetricTensor ()=default | |
AntisymmetricTensor (const Vector &v) | |
AntisymmetricTensor (const PseudoVectorTag, const Vector &v) | |
AntisymmetricTensor (const Float v) | |
Constructs an antisymmetric tensor by setting all components above the diagonal to the same value. More... | |
INLINE Vector & | components () |
Returns the components above diagonal as vector. More... | |
INLINE const Vector & | components () const |
Returns the components above diagonal as vector. More... | |
Vector | pseudovector () const |
Returns the associated pseudovector. More... | |
INLINE Vector | operator[] (const Size idx) const |
Returns a row of the matrix. More... | |
INLINE Float | operator() (const Size i, const Size j) const |
Returns element on given with given indices. More... | |
INLINE AntisymmetricTensor | operator+= (const AntisymmetricTensor &other) |
INLINE AntisymmetricTensor | operator-= (const AntisymmetricTensor &other) |
INLINE AntisymmetricTensor | operator- () const |
Static Public Member Functions | |
static INLINE AntisymmetricTensor | null () |
Friends | |
bool | operator== (const AntisymmetricTensor &t1, const AntisymmetricTensor &t2) |
AntisymmetricTensor | operator+ (const AntisymmetricTensor &t1, const AntisymmetricTensor &t2) |
AntisymmetricTensor | operator- (const AntisymmetricTensor &t1, const AntisymmetricTensor &t2) |
AntisymmetricTensor | operator* (const AntisymmetricTensor &t, const Float v) |
AntisymmetricTensor | operator* (const Float v, const AntisymmetricTensor &t) |
AntisymmetricTensor | operator/ (const AntisymmetricTensor &t, const Float v) |
std::ostream & | operator<< (std::ostream &stream, const AntisymmetricTensor &t) |
Definition at line 18 of file AntisymmetricTensor.h.
|
default |
|
inlineexplicit |
Constructs an antisymmetric tensor given three independed components. Components x, y, z in vector correspond to components xy, xz, yz of the antisymmetric tensor.
Definition at line 27 of file AntisymmetricTensor.h.
|
inlineexplicit |
Constructs an antisymmetric tensor from a corresponding pseudovector. Here we use right-hand convention, same as for cross product.
Definition at line 32 of file AntisymmetricTensor.h.
|
inlineexplicit |
Constructs an antisymmetric tensor by setting all components above the diagonal to the same value.
Definition at line 36 of file AntisymmetricTensor.h.
Returns the components above diagonal as vector.
Definition at line 40 of file AntisymmetricTensor.h.
Returns the components above diagonal as vector.
Definition at line 45 of file AntisymmetricTensor.h.
|
inlinestatic |
Definition at line 79 of file AntisymmetricTensor.h.
Returns element on given with given indices.
Definition at line 69 of file AntisymmetricTensor.h.
|
inline |
Definition at line 83 of file AntisymmetricTensor.h.
|
inline |
Definition at line 93 of file AntisymmetricTensor.h.
|
inline |
Definition at line 88 of file AntisymmetricTensor.h.
Returns a row of the matrix.
Definition at line 55 of file AntisymmetricTensor.h.
|
inline |
Returns the associated pseudovector.
Definition at line 50 of file AntisymmetricTensor.h.
|
friend |
Definition at line 109 of file AntisymmetricTensor.h.
|
friend |
Definition at line 113 of file AntisymmetricTensor.h.
|
friend |
Definition at line 101 of file AntisymmetricTensor.h.
|
friend |
Definition at line 105 of file AntisymmetricTensor.h.
|
friend |
Definition at line 117 of file AntisymmetricTensor.h.
|
friend |
Definition at line 121 of file AntisymmetricTensor.h.
|
friend |
Definition at line 97 of file AntisymmetricTensor.h.