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

Declare and define the function Tpetra::Details::computeOffsetsFromCounts, an implementation detail 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
 Namespace for Tpetra implementation details.
 

Functions

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)
 Compute offsets from counts. 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 function Tpetra::Details::computeOffsetsFromCounts, an implementation detail 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 158 of file Tpetra_Details_computeOffsets.hpp.

counts_view_type counts_

Bucket counts (input argument).

Definition at line 160 of file Tpetra_Details_computeOffsets.hpp.

size_type size_

Number of entries in counts_.

Number of entries in offsets_, minus 1.

Definition at line 162 of file Tpetra_Details_computeOffsets.hpp.

count_type count_

"Count" input argument

Definition at line 250 of file Tpetra_Details_computeOffsets.hpp.