/home/runner/work/kynema/kynema/kynema/src/solver/scan_row_entries.hpp Source File

Kynema API: /home/runner/work/kynema/kynema/kynema/src/solver/scan_row_entries.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
scan_row_entries.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Kokkos_Core.hpp>
4
5namespace kynema::solver {
6
11template <typename RowPtrType>
13 using ValueType = typename RowPtrType::value_type;
14 typename RowPtrType::const_type row_entries;
15 RowPtrType row_ptrs;
16
17 KOKKOS_FUNCTION
18 void operator()(size_t i, ValueType& update, bool is_final) const {
19 update += row_entries(i);
20 if (is_final) {
21 row_ptrs(i + 1) = update;
22 }
23 }
24};
25
26} // namespace kynema::solver
Definition calculate_error_sum_squares.hpp:5
A Scanning Kernel which calculates the row pointers from a list of the number of entries in each row.
Definition scan_row_entries.hpp:12
KOKKOS_FUNCTION void operator()(size_t i, ValueType &update, bool is_final) const
Definition scan_row_entries.hpp:18
typename RowPtrType::value_type ValueType
Definition scan_row_entries.hpp:13
RowPtrType row_ptrs
Definition scan_row_entries.hpp:15
RowPtrType::const_type row_entries
Definition scan_row_entries.hpp:14