pad Struct Reference

Public Member Functions

Index size () const
 
Index operator[] (Index i) const
 

Public Attributes

Index in_size
 
Index out_size
 

Member Function Documentation

◆ operator[]()

Index pad::operator[] ( Index  i) const
inline
3 { return std::max<Index>(0, i - (out_size - in_size)); }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Index in_size
Definition: Slicing_custom_padding_cxx11.cpp:4
Index out_size
Definition: Slicing_custom_padding_cxx11.cpp:4

References i, in_size, and out_size.

Referenced by check_tutorial_examples().

◆ size()

Index pad::size ( ) const
inline
2 { return out_size; }

References out_size.

Referenced by check_tutorial_examples().

Member Data Documentation

◆ in_size

Index pad::in_size

◆ out_size

Index pad::out_size

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