getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] (no subject)


From: Konstantinos Poulios
Subject: [Getfem-commits] (no subject)
Date: Wed, 20 Feb 2019 07:34:28 -0500 (EST)

branch: master
commit 2d8cea5b5dd93a456449a9b9a093d035dd4d6457
Author: Konstantinos Poulios <address@hidden>
Date:   Wed Feb 20 13:30:28 2019 +0100

    Small extension of bgeot::tensor constructors
---
 src/getfem/bgeot_tensor.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/getfem/bgeot_tensor.h b/src/getfem/bgeot_tensor.h
index f424c2d..815f6eb 100644
--- a/src/getfem/bgeot_tensor.h
+++ b/src/getfem/bgeot_tensor.h
@@ -323,6 +323,10 @@ namespace bgeot {
     }
 
     tensor(const multi_index &c) { init(c); }
+    tensor(size_type i, size_type j)
+    { init(multi_index(i, j)); }
+    tensor(size_type i, size_type j, size_type k)
+    { init(multi_index(i, j, k)); }
     tensor(size_type i, size_type j, size_type k, size_type l)
     { init(multi_index(i, j, k, l)); }
     tensor() {}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]