ViennaSHE 1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
viennashe::solvers::PETSC_vector< NumericT, VectorType > Class Template Reference

Class Encapsulate The PETSc COMM WORLD -Should be singleton. More...

#include <petsc.hpp>

Public Types

typedef std::size_t size_type
 
typedef NumericT value_type
 

Public Member Functions

 PETSC_vector (const std::vector< NumericT > &V, PETSC_matrix< NumericT, VectorType > &M)
 Constructor to the PETSC vector Right Hand and Solution M Matrix of the Linear System. More...
 
 ~PETSC_vector ()
 
 operator std::vector< NumericT > ()
 Cast from the PETSC vector to std::vector. More...
 
void GenerateGlobal ()
 
Vec getSolution () const
 
void setSolution (Vec solution)
 
 operator Vec () const
 
size_type size () const
 
size_type sizeLocal () const
 
Vec getVec () const
 
void setVec (Vec vec)
 

Detailed Description

template<typename NumericT, typename VectorType>
class viennashe::solvers::PETSC_vector< NumericT, VectorType >

Class Encapsulate The PETSc COMM WORLD -Should be singleton.

Wrapper class to the PETSC vector.

Definition at line 436 of file petsc.hpp.

Member Typedef Documentation

◆ size_type

template<typename NumericT , typename VectorType >
typedef std::size_t viennashe::solvers::PETSC_vector< NumericT, VectorType >::size_type

Definition at line 440 of file petsc.hpp.

◆ value_type

template<typename NumericT , typename VectorType >
typedef NumericT viennashe::solvers::PETSC_vector< NumericT, VectorType >::value_type

Definition at line 441 of file petsc.hpp.

Constructor & Destructor Documentation

◆ PETSC_vector()

template<typename NumericT , typename VectorType >
viennashe::solvers::PETSC_vector< NumericT, VectorType >::PETSC_vector ( const std::vector< NumericT > &  V,
PETSC_matrix< NumericT, VectorType > &  M 
)
inline

Constructor to the PETSC vector Right Hand and Solution M Matrix of the Linear System.

Definition at line 446 of file petsc.hpp.

◆ ~PETSC_vector()

template<typename NumericT , typename VectorType >
viennashe::solvers::PETSC_vector< NumericT, VectorType >::~PETSC_vector ( )
inline

Definition at line 475 of file petsc.hpp.

Member Function Documentation

◆ GenerateGlobal()

template<typename NumericT , typename VectorType >
void viennashe::solvers::PETSC_vector< NumericT, VectorType >::GenerateGlobal ( )
inline

Definition at line 549 of file petsc.hpp.

◆ getSolution()

template<typename NumericT , typename VectorType >
Vec viennashe::solvers::PETSC_vector< NumericT, VectorType >::getSolution ( ) const
inline

Definition at line 561 of file petsc.hpp.

◆ getVec()

template<typename NumericT , typename VectorType >
Vec viennashe::solvers::PETSC_vector< NumericT, VectorType >::getVec ( ) const
inline

Definition at line 589 of file petsc.hpp.

◆ operator std::vector< NumericT >()

template<typename NumericT , typename VectorType >
viennashe::solvers::PETSC_vector< NumericT, VectorType >::operator std::vector< NumericT > ( )
inline

Cast from the PETSC vector to std::vector.

Definition at line 485 of file petsc.hpp.

◆ operator Vec()

template<typename NumericT , typename VectorType >
viennashe::solvers::PETSC_vector< NumericT, VectorType >::operator Vec ( ) const
inline

Definition at line 571 of file petsc.hpp.

◆ setSolution()

template<typename NumericT , typename VectorType >
void viennashe::solvers::PETSC_vector< NumericT, VectorType >::setSolution ( Vec  solution)
inline

Definition at line 567 of file petsc.hpp.

◆ setVec()

template<typename NumericT , typename VectorType >
void viennashe::solvers::PETSC_vector< NumericT, VectorType >::setVec ( Vec  vec)
inline

Definition at line 595 of file petsc.hpp.

◆ size()

template<typename NumericT , typename VectorType >
size_type viennashe::solvers::PETSC_vector< NumericT, VectorType >::size ( ) const
inline

Definition at line 577 of file petsc.hpp.

◆ sizeLocal()

template<typename NumericT , typename VectorType >
size_type viennashe::solvers::PETSC_vector< NumericT, VectorType >::sizeLocal ( ) const
inline

Definition at line 583 of file petsc.hpp.


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