Canoe
Comprehensive Atmosphere N' Ocean Engine
tridiag.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "linalg.h"

Go to the source code of this file.

Macros

#define WITHOUT_PIVOTING   0
 
#define WITH_PIVOTING   1
 
#define AA(i, j)   aa[(m1 + m2 + 1) * (i) + (j)]
 
#define AAORIG(i, j)   aaorig[(m1 + m2 + 1) * (i) + (j)]
 
#define AAL(i, j)   aal[m1 * (i) + (j)]
 

Functions

void tridiag (int n, double *a, double *b, double *c, double *r, double *u, int pivot_type)
 

Macro Definition Documentation

◆ WITHOUT_PIVOTING

#define WITHOUT_PIVOTING   0

Definition at line 6 of file tridiag.c.

◆ WITH_PIVOTING

#define WITH_PIVOTING   1

Definition at line 7 of file tridiag.c.

◆ AA

#define AA (   i,
 
)    aa[(m1 + m2 + 1) * (i) + (j)]

Definition at line 19 of file tridiag.c.

◆ AAORIG

#define AAORIG (   i,
 
)    aaorig[(m1 + m2 + 1) * (i) + (j)]

Definition at line 21 of file tridiag.c.

◆ AAL

#define AAL (   i,
 
)    aal[m1 * (i) + (j)]

Definition at line 23 of file tridiag.c.

Function Documentation

◆ tridiag()

void tridiag ( int  n,
double *  a,
double *  b,
double *  c,
double *  r,
double *  u,
int  pivot_type 
)

Definition at line 25 of file tridiag.c.