Tpetra parallel linear algebra Version of the Day
|
Functions for manipulating CRS arrays. More...
#include <numeric>
#include <type_traits>
#include "TpetraCore_config.h"
#include "Kokkos_Core.hpp"
#include "Tpetra_Details_Behavior.hpp"
#include "Tpetra_Details_CrsPadding.hpp"
#include "Tpetra_Details_WrappedDualView.hpp"
#include <iostream>
#include <memory>
#include <unordered_map>
Go to the source code of this file.
Namespaces | |
namespace | Tpetra |
Namespace Tpetra contains the class and methods constituting the Tpetra library. | |
namespace | Tpetra::Details |
Nonmember function that computes a residual Computes R = B - A * X. | |
Functions for manipulating CRS arrays.
Definition in file Tpetra_Details_crsUtils.hpp.
void Tpetra::Details::impl::pad_crs_arrays | ( | const PadCrsAction | action, |
const RowPtr & | row_ptr_beg, | ||
const RowPtr & | row_ptr_end, | ||
Indices & | indices_wdv, | ||
Values & | values_wdv, | ||
const Padding & | padding, | ||
const int | my_rank, | ||
const bool | verbose ) |
Implementation of padCrsArrays.
row_ptr_beg | [in] Offset to beginning of each row. |
row_ptr_end | [in] Offset to end of each row. |
Each row lclRow has row_ptr_end[lclRow] - row_ptr_beg[lclRow] entries. Offsets row_ptr_end[lclRow] to row_ptr_beg[lclRow+1] - 1 (inclusive) are extra space.
Definition at line 151 of file Tpetra_Details_crsUtils.hpp.
size_t Tpetra::Details::impl::insert_crs_indices | ( | typename Pointers::value_type const | row, |
Pointers const & | row_ptrs, | ||
InOutIndices & | cur_indices, | ||
size_t & | num_assigned, | ||
InIndices const & | new_indices, | ||
IndexMap && | map, | ||
std::function< void(size_t const, size_t const, size_t const)> | cb ) |
Implementation of insertCrsIndices.
Definition at line 403 of file Tpetra_Details_crsUtils.hpp.
size_t Tpetra::Details::impl::find_crs_indices | ( | typename Pointers::value_type const | row, |
Pointers const & | row_ptrs, | ||
const size_t | curNumEntries, | ||
Indices1 const & | cur_indices, | ||
Indices2 const & | new_indices, | ||
IndexMap && | map, | ||
Callback && | cb ) |
Implementation of findCrsIndices.
Definition at line 502 of file Tpetra_Details_crsUtils.hpp.