accelerInt  v0.1
Functions | Variables
arnoldi.h File Reference

Implementation of the arnoldi iteration methods. More...

#include <string.h>
#include "header.h"
#include "phiAHessenberg.h"
#include "exponential_linear_algebra.h"
Include dependency graph for arnoldi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static int arnoldi (const double scale, const int p, const double h, const double *A, const double *v, const double *sc, double *beta, double *Vm, double *Hm, double *phiHm)
 Runs the arnoldi iteration to calculate the Krylov projection. More...
 

Variables

static int index_list [23] = {1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 17, 21, 27, 34, 42, 53, 67, 84, 106, 133, 167, 211, 265}
 The list of indicies to check the Krylov projection error at. More...
 

Detailed Description

Implementation of the arnoldi iteration methods.

Author
Nicholas Curtis
Date
03/09/2015

Note: turn on EXACT_KRYLOV krylov definition to use the use the "happy breakdown" criteria in determining end of krylov iteration

Definition in file arnoldi.h.

Function Documentation

◆ arnoldi()

int arnoldi ( const double  scale,
const int  p,
const double  h,
const double *  A,
const double *  v,
const double *  sc,
double *  beta,
double *  Vm,
double *  Hm,
double *  phiHm 
)
inlinestatic

Runs the arnoldi iteration to calculate the Krylov projection.

Returns
m - the ending size of the matrix
Parameters
[in]scalethe value to scale the timestep by
[in]pthe order of the maximum phi function needed
[in]hthe timestep
[in]Athe jacobian matrix
[in]vthe vector to use for the krylov subspace
[in]scthe error scaling vector
[out]betathe norm of the v vector
[out]Vmthe arnoldi basis matrix
[out]Hmthe constructed Hessenberg matrix, used in actual exponentials
[out]phiHmthe exponential matrix computed from h * scale * Hm

Definition at line 46 of file arnoldi.h.

Variable Documentation

◆ index_list

int index_list[23] = {1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 17, 21, 27, 34, 42, 53, 67, 84, 106, 133, 167, 211, 265}
static

The list of indicies to check the Krylov projection error at.

Definition at line 26 of file arnoldi.h.