Skip to content
Snippets Groups Projects
Commit 084af6ba authored by Simon Praetorius's avatar Simon Praetorius
Browse files

Tensor data structure based on mdarray

parent dd6e00fd
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,9 @@ public:
using tensorspan_type = TensorSpan<element_type,extents_type,layout_type>;
using const_tensorspan_type = TensorSpan<const element_type,extents_type,layout_type>;
using tensorspan_type = TensorSpan<element_type,extents_type,layout_type>;
using const_tensorspan_type = TensorSpan<const element_type,extents_type,layout_type>;
public:
/// \brief Inherit constructor from TensorMixin
using base_type::base_type;
......
......@@ -130,6 +130,10 @@ dune_add_test(SOURCES dynmatrixtest.cc
dune_add_test(SOURCES dyntensortest.cc
LABELS quick)
dune_add_test(SOURCES dyntensortest.cc
LINK_LIBRARIES dunecommon
LABELS quick)
dune_add_test(SOURCES dynvectortest.cc
LABELS quick)
......
......@@ -132,6 +132,10 @@ void checkConstructors(Dune::TestSuite& testSuite)
Dune::Tensor t3{tensor1.toTensorSpan()};
}
Tensor tensor9(tensor1.toTensorSpan());
testSuite.subTest(subTestSuite);
}
......
......@@ -13,7 +13,6 @@
#include <dune/common/forceinline.hh>
#include <dune/common/std/extents.hh>
#include <dune/common/std/span.hh>
#include <dune/common/std/functional.hh>
namespace Dune {
namespace Impl {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment