suanPan
IntegrationPlan Class Referencefinal

An IntegrationPlan class. More...

#include <IntegrationPlan.h>

Collaboration diagram for IntegrationPlan:

Public Member Functions

 IntegrationPlan (unsigned, unsigned, IntegrationType)
 
const arma::mat & get_data () const
 
double operator() (unsigned, unsigned) const
 
void print () const
 

Public Attributes

const unsigned n_rows = 0
 
const unsigned n_cols = 0
 

Detailed Description

An IntegrationPlan class.

This is a simple class provides users the integration points coordinates and corresponding weights.

Invoke the object with following definition:

IntegrationPlan TEST(intDimension, intOrder, intType);

intDimension is the dimension of the problem. intOrder is the integration order. intType is the integration type. 1 is Gauss and 2 is Lobatto.

The data is stored in double** int_pts. The data can be acquired by using method get_integration_scheme(). Single element could be accessed by (int, int) operator. The data is arranged as follows.

|-------------------------------------|
| POINT |   COORDINATES   |   WEIGHT  |
|-------|-----|-----|-----|-----|-----|  <---
|   1   | X_1 | Y_1 | ... |  WEIGHT_1 |    |
|   2   | X_2 | Y_2 | ... |  WEIGHT_2 |    |
|   3   | X_3 | Y_3 | ... |  WEIGHT_3 |    |
|   .   |  .  |  .  |  .  |     .     |    |---ROWS=intOrder^intDimension
|   .   |  .  |  .  |  .  |     .     |    |
|   .   |  .  |  .  |  .  |     .     |    |
|   N   | X_N | Y_N | ... |  WEIGHT_N |    |
|-------------------------------------|  <---
        ^                             ^
        |-----------------------------|
                       |
              COLS=intDimension+1
Author
tlc
Date
05/09/2017
Version
0.1.0

Constructor & Destructor Documentation

◆ IntegrationPlan()

IntegrationPlan::IntegrationPlan ( unsigned  D,
unsigned  O,
IntegrationType  T 
)
explicit

Member Function Documentation

◆ get_data()

const arma::mat & IntegrationPlan::get_data ( ) const

◆ operator()()

double IntegrationPlan::operator() ( unsigned  i,
unsigned  j 
) const

◆ print()

void IntegrationPlan::print ( ) const

Member Data Documentation

◆ n_cols

const unsigned IntegrationPlan::n_cols = 0

◆ n_rows

const unsigned IntegrationPlan::n_rows = 0

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