Ginkgo Generated from branch based on main. Ginkgo version 1.11.0
A numerical linear algebra library targeting many-core architectures
Loading...
Searching...
No Matches
gko::local_span Struct Reference

A span that is used exclusively for local numbering. More...

#include <ginkgo/core/base/range.hpp>

Inheritance diagram for gko::local_span:
[legend]
Collaboration diagram for gko::local_span:
[legend]

Public Member Functions

constexpr span (size_type point) noexcept
 Creates a span representing a point point.
constexpr span (size_type begin, size_type end) noexcept
 Creates a span.
Public Member Functions inherited from gko::span
constexpr span (size_type point) noexcept
 Creates a span representing a point point.
constexpr span (size_type begin, size_type end) noexcept
 Creates a span.
constexpr bool is_valid () const
 Checks if a span is valid.
constexpr size_type length () const
 Returns the length of a span.

Additional Inherited Members

Public Attributes inherited from gko::span
const size_type begin
 Beginning of the span.
const size_type end
 End of the span.

Detailed Description

A span that is used exclusively for local numbering.

Member Function Documentation

◆ span() [1/2]

gko::span::span ( size_type begin,
size_type end )
inlineconstexprnoexcept

Creates a span.

Parameters
beginthe beginning of the span
endthe end of the span

◆ span() [2/2]

gko::span::span ( size_type point)
inlineconstexprnoexcept

Creates a span representing a point point.

The begin of this span is set to point, and the end to point + 1.

Parameters
pointthe point which the span represents

The documentation for this struct was generated from the following file: