HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
BandedMatrixDestroy.c
Go to the documentation of this file.
1
6
#include <stdlib.h>
7
#include <
bandedmatrix.h
>
8
10
int
BandedMatrixDestroy
(
void
*A )
11
{
12
BandedMatrix
*B = (
BandedMatrix
*) A;
13
14
if
(B->
ncol
) free(B->
ncol
);
15
if
(B->
nrow
) free(B->
nrow
);
16
if
(B->
data
) free(B->
data
);
17
18
return
(0);
19
}
BandedMatrixDestroy
int BandedMatrixDestroy(void *A)
Definition:
BandedMatrixDestroy.c:10
bandedmatrix.h
Data structure and some function declarations for banded block matrices.
BandedMatrix::data
double * data
Definition:
bandedmatrix.h:24
BandedMatrix
Structure for defining a banded block matrix.
Definition:
bandedmatrix.h:18
BandedMatrix::nrow
int * nrow
Definition:
bandedmatrix.h:23
BandedMatrix::ncol
int * ncol
Definition:
bandedmatrix.h:22