From f4b8f69474243b6a6890a7ec252ecdf8c615fc61 Mon Sep 17 00:00:00 2001
From: Van Dung Nguyen <vandung.nguyen@ulg.ac.be>
Date: Thu, 15 Nov 2012 14:54:47 +0000
Subject: [PATCH] get determinant of tensor3

---
 Geo/STensor3.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Geo/STensor3.h b/Geo/STensor3.h
index d286062dd3..92243848ed 100644
--- a/Geo/STensor3.h
+++ b/Geo/STensor3.h
@@ -305,6 +305,12 @@ class STensor3 {
     return prod;
   }
 
+  double determinant() const{
+    fullMatrix<double> m(3,3);
+    getMat(m);
+    double det = m.determinant();
+    return det;
+  };
   void print(const char *) const;
 };
 
-- 
GitLab