|
SPH
|
Generic 2nd-order tensor with 9 independent components. More...
#include <Tensor.h>
Public Member Functions | |
| Tensor ()=default | |
| Tensor (const Float value) | |
| Tensor (const Vector &v1, const Vector &v2, const Vector &v3) | |
| Construct the matrix from vectors as rows. More... | |
| INLINE Float & | operator() (const Size i, const Size j) |
| INLINE Float | operator() (const Size i, const Size j) const |
| INLINE Vector | column (const Size idx) const |
| INLINE Vector | row (const Size idx) const |
| INLINE Tensor | transpose () const |
| INLINE Tensor | operator+ (const Tensor &other) const |
| INLINE Tensor | operator- (const Tensor &other) const |
| INLINE Tensor | operator* (const Tensor &other) const |
| Matrix multiplication. More... | |
| INLINE Vector | operator* (const Vector &u) const |
| INLINE Tensor & | operator+= (const Tensor &other) |
| INLINE Tensor & | operator-= (const Tensor &other) |
| INLINE Tensor & | operator*= (const Float value) |
| INLINE Tensor & | operator/= (const Float value) |
| INLINE bool | operator== (const Tensor &other) const |
| INLINE bool | operator!= (const Tensor &other) const |
Static Public Member Functions | |
| static Tensor | null () |
| static Tensor | identity () |
Friends | |
| INLINE friend Tensor | operator* (const Tensor &t, const Float v) |
| INLINE friend Tensor | operator* (const Float v, const Tensor &t) |
| std::ostream & | operator<< (std::ostream &stream, const Tensor &t) |
|
default |
|
friend |