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