TDLS 0.4.0
Tiny Device-callable Linear Solvers
Loading...
Searching...
No Matches
tdls::ArrowheadShape Struct Reference

Shape of an arrowhead matrix: a template argument of the compile-time solver, a function argument of the runtime one. More...

#include <config.hpp>

Public Member Functions

TDLS_HOST_DEVICE constexpr int n () const noexcept
 Dimension of the matrix.
 

Public Attributes

int border = 1
 Number of border unknowns, ordered first.
 
int block = 1
 Number of unknowns of a diagonal block.
 
int blocks = 1
 Number of diagonal blocks.
 
int coupling_row = 0
 

Detailed Description

Shape of an arrowhead matrix: a template argument of the compile-time solver, a function argument of the runtime one.

The dimension is n = border + block * blocks. ArrowheadStorageMap::valid checks a shape against a storage and a coupling.

Member Function Documentation

◆ n()

TDLS_HOST_DEVICE constexpr int tdls::ArrowheadShape::n ( ) const
inlinenodiscardconstexprnoexcept

Dimension of the matrix.

Returns
border + block * blocks

Member Data Documentation

◆ coupling_row

int tdls::ArrowheadShape::coupling_row = 0

First border row coupled to the blocks, under the diagonal coupling (rows coupling_row .. coupling_row + block - 1). It stays 0 under the dense coupling.


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