version GIT relicensing-7336-ga5359f9c0a 2026-12-03 09:40:02+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
PSCToolkitWrappers::Vector::VectorReference Class Reference

Detailed Description

This class provides a wrappers for accessing psblas vector elements.

Definition at line 75 of file psblas_vector.h.

Public Member Functions

const VectorReference & operator= (const value_type &s) const
 
const VectorReference & operator+= (const value_type &s) const
 
const VectorReference & operator-= (const value_type &s) const
 
const VectorReference & operator*= (const value_type &s) const
 
const VectorReference & operator/= (const value_type &s) const
 
 operator value_type () const
 

Private Types

using size_type = types::global_dof_index
 
using value_type = double
 

Private Member Functions

 VectorReference (Vector &vector, const size_type index)
 

Private Attributes

Vector & vector
 
const size_type index
 

Friends

class Vector
 

Member Typedef Documentation

◆ size_type

Definition at line 78 of file psblas_vector.h.

◆ value_type

Definition at line 80 of file psblas_vector.h.

Constructor & Destructor Documentation

◆ VectorReference()

PSCToolkitWrappers::Vector::VectorReference::VectorReference ( Vector &  vector,
const size_type  index 
)
inlineprivate

Constructor.

Definition at line 85 of file psblas_vector.h.

Member Function Documentation

◆ operator=()

Set the referenced element of the vector to s.

Definition at line 95 of file psblas_vector.h.

◆ operator+=()

Add s to the referenced element of the vector.

Definition at line 121 of file psblas_vector.h.

◆ operator-=()

Subtract s to the referenced element of the vector.

Definition at line 144 of file psblas_vector.h.

◆ operator*=()

Multiply s to the referenced element of the vector.

Definition at line 167 of file psblas_vector.h.

◆ operator/=()

Divide s to the referenced element of the vector.

Definition at line 190 of file psblas_vector.h.

◆ operator value_type()

Definition at line 209 of file psblas_vector.h.

Friends And Related Symbol Documentation

◆ Vector

Typedef for the vector type used

Typedef for the vector type used.

Definition at line 240 of file psblas_vector.h.

Member Data Documentation

◆ vector

Vector& PSCToolkitWrappers::Vector::VectorReference::vector
private

Definition at line 236 of file psblas_vector.h.

◆ index

const size_type PSCToolkitWrappers::Vector::VectorReference::index
private

Definition at line 238 of file psblas_vector.h.


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