HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
BandedMatrixInitialize.c File Reference

Initialize a banded matrix object. More...

#include <stdlib.h>
#include <bandedmatrix.h>

Go to the source code of this file.

Functions

int BandedMatrixInitialize (void *A)
 

Detailed Description

Initialize a banded matrix object.

Author
Debojyoti Ghosh

Definition in file BandedMatrixInitialize.c.

Function Documentation

◆ BandedMatrixInitialize()

int BandedMatrixInitialize ( void *  A)

Initialize a newly-created banded matrix object.

Parameters
ABanded matrix object of type BandedMatrix

Definition at line 10 of file BandedMatrixInitialize.c.

11 {
12  BandedMatrix *B = (BandedMatrix*) A;
13 
14  B->nbands = 0;
15  B->nrows_local = 0;
16  B->BlockSize = 0;
17 
18  B->ncol = NULL;
19  B->nrow = NULL;
20  B->data = NULL;
21 
22  return(0);
23 }
double * data
Definition: bandedmatrix.h:24
Structure for defining a banded block matrix.
Definition: bandedmatrix.h:18