Discontinuous Galerkin Library
#include "dg/algorithm.h"
dg::InverseTriDiagonal< value_type > Struct Template Reference

Fast inverse tridiagonal sparse matrix. More...

Public Member Functions

 InverseTriDiagonal ()=default
 
 InverseTriDiagonal (const TriDiagonal< thrust::host_vector< value_type > > &tri)
 
void operator() (const thrust::host_vector< value_type > &y, thrust::host_vector< value_type > &x) const
 

Detailed Description

template<class value_type>
struct dg::InverseTriDiagonal< value_type >

Fast inverse tridiagonal sparse matrix.

When applied to a vector, uses Thomas algorithm to compute \( T^{-1} v\)

Attention
Only for shared memory host vectors

Constructor & Destructor Documentation

◆ InverseTriDiagonal() [1/2]

template<class value_type >
dg::InverseTriDiagonal< value_type >::InverseTriDiagonal ( )
default

◆ InverseTriDiagonal() [2/2]

template<class value_type >
dg::InverseTriDiagonal< value_type >::InverseTriDiagonal ( const TriDiagonal< thrust::host_vector< value_type > > &  tri)
inline

Member Function Documentation

◆ operator()()

template<class value_type >
void dg::InverseTriDiagonal< value_type >::operator() ( const thrust::host_vector< value_type > &  y,
thrust::host_vector< value_type > &  x 
) const
inline

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