| 578 | //- Return the determinant of a tensor |
| 579 | template<class Cmpt> |
| 580 | inline Cmpt det(const Tensor<Cmpt>& t) |
| 581 | { |
| 582 | return |
| 583 | ( |
| 584 | t.xx()*t.yy()*t.zz() + t.xy()*t.yz()*t.zx() |
| 585 | + t.xz()*t.yx()*t.zy() - t.xx()*t.yz()*t.zy() |
| 586 | - t.xy()*t.yx()*t.zz() - t.xz()*t.yy()*t.zx() |
| 587 | ); |
| 588 | } |
| 589 | |
| 590 | |
| 591 | //- Return the cofactor tensor of a tensor |