Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
Tpetra_Details_computeOffsets.hpp File Reference

Declare and define the functions Tpetra::Details::computeOffsetsFromCounts and Tpetra::computeOffsetsFromConstantCount. These functions are implementation details of Tpetra (in particular, of FixedHashTable, CrsGraph, and CrsMatrix). More...

#include "TpetraCore_config.h"
#include "Tpetra_Details_getEntryOnHost.hpp"
#include <limits>
#include <type_traits>

Go to the source code of this file.

Namespaces

 Tpetra
 Namespace Tpetra contains the class and methods constituting the Tpetra library.
 
 Tpetra::Details
 Nonmember function that computes a residual Computes R = B - A * X.
 

Functions

template<class ExecutionSpace , class OffsetsViewType , class CountsViewType , class SizeType = typename OffsetsViewType::size_type>
OffsetsViewType::non_const_value_type Tpetra::Details::computeOffsetsFromCounts (const ExecutionSpace &execSpace, const OffsetsViewType &ptr, const CountsViewType &counts)
 Compute offsets from counts. More...
 
template<class OffsetsViewType , class CountsViewType , class SizeType = typename OffsetsViewType::size_type>
OffsetsViewType::non_const_value_type Tpetra::Details::computeOffsetsFromCounts (const OffsetsViewType &ptr, const CountsViewType &counts)
 Overload that uses OffsetsViewType's execution space. More...
 
template<class OffsetsViewType , class CountType , class SizeType = typename OffsetsViewType::size_type>
OffsetsViewType::non_const_value_type Tpetra::Details::computeOffsetsFromConstantCount (const OffsetsViewType &ptr, const CountType count)
 Compute offsets from a constant count. More...
 

Detailed Description

Declare and define the functions Tpetra::Details::computeOffsetsFromCounts and Tpetra::computeOffsetsFromConstantCount. These functions are implementation details of Tpetra (in particular, of FixedHashTable, CrsGraph, and CrsMatrix).

Definition in file Tpetra_Details_computeOffsets.hpp.

Variable Documentation

offsets_view_type offsets_

Offsets (output argument)

Definition at line 136 of file Tpetra_Details_computeOffsets.hpp.

counts_view_type counts_

Bucket counts (input argument).

Definition at line 138 of file Tpetra_Details_computeOffsets.hpp.

SizeType size_

Number of entries in counts_.

Definition at line 140 of file Tpetra_Details_computeOffsets.hpp.

CountType count_

"Count" input argument

Definition at line 208 of file Tpetra_Details_computeOffsets.hpp.