QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
NinePointLinearOp Class Reference

#include <ql/methods/finitedifferences/operators/ninepointlinearop.hpp>

+ Inheritance diagram for NinePointLinearOp:
+ Collaboration diagram for NinePointLinearOp:

Public Member Functions

 NinePointLinearOp (Size d0, Size d1, const ext::shared_ptr< FdmMesher > &mesher)
 
 NinePointLinearOp (const NinePointLinearOp &m)
 
 NinePointLinearOp (NinePointLinearOp &&m) noexcept
 
NinePointLinearOpoperator= (const NinePointLinearOp &m)
 
NinePointLinearOpoperator= (NinePointLinearOp &&m) noexcept
 
 ~NinePointLinearOp () override=default
 
Array apply (const Array &r) const override
 
NinePointLinearOp mult (const Array &u) const
 
void swap (NinePointLinearOp &m) noexcept
 
SparseMatrix toMatrix () const override
 
- Public Member Functions inherited from FdmLinearOp
virtual ~FdmLinearOp ()=default
 
virtual array_type apply (const array_type &r) const =0
 
virtual SparseMatrix toMatrix () const =0
 

Protected Member Functions

 NinePointLinearOp ()=default
 

Protected Attributes

Size d0_
 
Size d1_
 
std::unique_ptr< Size[]> i00_
 
std::unique_ptr< Size[]> i10_
 
std::unique_ptr< Size[]> i20_
 
std::unique_ptr< Size[]> i01_
 
std::unique_ptr< Size[]> i21_
 
std::unique_ptr< Size[]> i02_
 
std::unique_ptr< Size[]> i12_
 
std::unique_ptr< Size[]> i22_
 
std::unique_ptr< Real[]> a00_
 
std::unique_ptr< Real[]> a10_
 
std::unique_ptr< Real[]> a20_
 
std::unique_ptr< Real[]> a01_
 
std::unique_ptr< Real[]> a11_
 
std::unique_ptr< Real[]> a21_
 
std::unique_ptr< Real[]> a02_
 
std::unique_ptr< Real[]> a12_
 
std::unique_ptr< Real[]> a22_
 
ext::shared_ptr< FdmMeshermesher_
 

Additional Inherited Members

- Public Types inherited from FdmLinearOp
typedef Array array_type
 

Detailed Description

Definition at line 37 of file ninepointlinearop.hpp.

Constructor & Destructor Documentation

◆ NinePointLinearOp() [1/4]

NinePointLinearOp ( Size  d0,
Size  d1,
const ext::shared_ptr< FdmMesher > &  mesher 
)

Definition at line 28 of file ninepointlinearop.cpp.

◆ NinePointLinearOp() [2/4]

Definition at line 70 of file ninepointlinearop.cpp.

◆ NinePointLinearOp() [3/4]

Definition at line 69 of file ninepointlinearop.hpp.

+ Here is the call graph for this function:

◆ ~NinePointLinearOp()

~NinePointLinearOp ( )
overridedefault

◆ NinePointLinearOp() [4/4]

NinePointLinearOp ( )
protecteddefault

Member Function Documentation

◆ operator=() [1/2]

NinePointLinearOp & operator= ( const NinePointLinearOp m)

Definition at line 73 of file ninepointlinearop.hpp.

+ Here is the call graph for this function:

◆ operator=() [2/2]

NinePointLinearOp & operator= ( NinePointLinearOp &&  m)
noexcept

Definition at line 79 of file ninepointlinearop.hpp.

+ Here is the call graph for this function:

◆ apply()

Array apply ( const Array r) const
overridevirtual

Implements FdmLinearOp.

Definition at line 110 of file ninepointlinearop.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mult()

NinePointLinearOp mult ( const Array u) const

Definition at line 159 of file ninepointlinearop.cpp.

+ Here is the caller graph for this function:

◆ swap()

void swap ( NinePointLinearOp m)
noexcept

Definition at line 177 of file ninepointlinearop.cpp.

+ Here is the caller graph for this function:

◆ toMatrix()

SparseMatrix toMatrix ( ) const
overridevirtual

Implements FdmLinearOp.

Definition at line 139 of file ninepointlinearop.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ d0_

Size d0_
protected

Definition at line 57 of file ninepointlinearop.hpp.

◆ d1_

Size d1_
protected

Definition at line 57 of file ninepointlinearop.hpp.

◆ i00_

std::unique_ptr<Size[]> i00_
protected

Definition at line 58 of file ninepointlinearop.hpp.

◆ i10_

std::unique_ptr<Size[]> i10_
protected

Definition at line 58 of file ninepointlinearop.hpp.

◆ i20_

std::unique_ptr<Size[]> i20_
protected

Definition at line 58 of file ninepointlinearop.hpp.

◆ i01_

std::unique_ptr<Size[]> i01_
protected

Definition at line 59 of file ninepointlinearop.hpp.

◆ i21_

std::unique_ptr<Size[]> i21_
protected

Definition at line 59 of file ninepointlinearop.hpp.

◆ i02_

std::unique_ptr<Size[]> i02_
protected

Definition at line 60 of file ninepointlinearop.hpp.

◆ i12_

std::unique_ptr<Size[]> i12_
protected

Definition at line 60 of file ninepointlinearop.hpp.

◆ i22_

std::unique_ptr<Size[]> i22_
protected

Definition at line 60 of file ninepointlinearop.hpp.

◆ a00_

std::unique_ptr<Real[]> a00_
protected

Definition at line 61 of file ninepointlinearop.hpp.

◆ a10_

std::unique_ptr<Real[]> a10_
protected

Definition at line 61 of file ninepointlinearop.hpp.

◆ a20_

std::unique_ptr<Real[]> a20_
protected

Definition at line 61 of file ninepointlinearop.hpp.

◆ a01_

std::unique_ptr<Real[]> a01_
protected

Definition at line 62 of file ninepointlinearop.hpp.

◆ a11_

std::unique_ptr<Real[]> a11_
protected

Definition at line 62 of file ninepointlinearop.hpp.

◆ a21_

std::unique_ptr<Real[]> a21_
protected

Definition at line 62 of file ninepointlinearop.hpp.

◆ a02_

std::unique_ptr<Real[]> a02_
protected

Definition at line 63 of file ninepointlinearop.hpp.

◆ a12_

std::unique_ptr<Real[]> a12_
protected

Definition at line 63 of file ninepointlinearop.hpp.

◆ a22_

std::unique_ptr<Real[]> a22_
protected

Definition at line 63 of file ninepointlinearop.hpp.

◆ mesher_

ext::shared_ptr<FdmMesher> mesher_
protected

Definition at line 65 of file ninepointlinearop.hpp.