batchlas::Inc Struct Reference

Overview

Element distance between consecutive vector entries, as a distinct type.

Vector takes (stride, inc) where VectorView's positional constructors take (inc, stride); both readings fit the same buffer, so a transliterated call reads the wrong addresses silently. The tags make the order a compile error.

Invariant
operator int is deleted: without it the tag decays back into the ambiguity.
See also
Matrix model: strong types for positional integers

Definition at line 73 of file matrix.hh.

#include <batchlas/blas/matrix.hh>

Constructors

◆ Inc()

batchlas::Inc::Inc ( int v = 1)
inlineexplicitconstexpr

Wraps v.

Definition at line 75 of file matrix.hh.

Functions

◆ operator int()

batchlas::Inc::operator int ( ) const
constexprdelete

Deleted: no silent decay back to int.

Variables

◆ value

int batchlas::Inc::value

The wrapped value.

Definition at line 74 of file matrix.hh.