24 static_assert(TensorType::natural_domain_t::rank() == 2);
25 auto const extents = ddc::detail::array(tensor.natural_domain().extents());
26 assert(extents[0] == extents[1] &&
"Matrix should be squared to compute its determinant");
27 const std::size_t n = extents[0];
29 Kokkos::View<typename TensorType::element_type**, Kokkos::LayoutRight, Kokkos::HostSpace>
30 buffer(
"determinant_buffer", n, n);
31 SIMILIE_DEBUG_LOG(
"similie_compute_determinant");
32 ddc::parallel_for_each(
33 "similie_compute_determinant",
34 Kokkos::DefaultHostExecutionSpace(),
35 tensor.accessor().natural_domain(),
37 buffer(ddc::detail::array(index)[0], ddc::detail::array(index)[1])
38 = tensor(tensor.access_element(index));