Fast Auxiliary Space Preconditioning  1.8.4 Feb/15/2016
graphics.c File Reference

Subroutines for graphical output. More...

#include <math.h>
#include "fasp.h"
#include "fasp_functs.h"

Go to the source code of this file.

Functions

void fasp_dcsr_subplot (const dCSRmat *A, const char *filename, INT size)
 Write sparse matrix pattern in BMP file format. More...
 
void fasp_dbsr_subplot (const dBSRmat *A, const char *filename, INT size)
 Write sparse matrix pattern in BMP file format. More...
 
void fasp_grid2d_plot (pgrid2d pg, INT level)
 Output grid to a EPS file. More...
 
INT fasp_dbsr_plot (const dBSRmat *A, const char *fname)
 Write dBSR sparse matrix pattern in BMP file format. More...
 
INT fasp_dcsr_plot (const dCSRmat *A, const char *fname)
 Write dCSR sparse matrix pattern in BMP file format. More...
 

Detailed Description

Subroutines for graphical output.

Definition in file graphics.c.

Function Documentation

void fasp_dbsr_plot ( const dBSRmat A,
const char *  filename 
)

Write dBSR sparse matrix pattern in BMP file format.

Parameters
APointer to the dBSRmat matrix
filenameFile name
Author
Chunsheng Feng
Date
11/16/2013
Note
The routine fasp_dbsr_plot writes pattern of the specified dBSRmat matrix in uncompressed BMP file format (Windows bitmap) to a binary file whose name is specified by the character string filename.

Each pixel corresponds to one matrix element. The pixel colors have the following meaning:

White structurally zero element Black zero element Blue positive element Red negative element Brown nearly zero element

Definition at line 469 of file graphics.c.

void fasp_dbsr_subplot ( const dBSRmat A,
const char *  filename,
INT  size 
)

Write sparse matrix pattern in BMP file format.

Parameters
APointer to the dBSRmat matrix
filenameFile name
sizesize*size is the picture size for the picture
Author
Chunsheng Feng
Date
11/16/2013
Note
The routine fasp_dbsr_subplot writes pattern of the specified dBSRmat matrix in uncompressed BMP file format (Windows bitmap) to a binary file whose name is specified by the character string filename.

Each pixel corresponds to one matrix element. The pixel colors have the following meaning:

White structurally zero element Black zero element Blue positive element Red negative element Brown nearly zero element

Definition at line 105 of file graphics.c.

INT fasp_dcsr_plot ( const dCSRmat A,
const char *  fname 
)

Write dCSR sparse matrix pattern in BMP file format.

Parameters
APointer to the dBSRmat matrix
fnameFile name to plot to
Author
Chunsheng Feng
Date
11/16/2013
Note
The routine fasp_dcsr_plot writes pattern of the specified dCSRmat matrix in uncompressed BMP file format (Windows bitmap) to a binary file whose name is specified by the character string filename.

Each pixel corresponds to one matrix element. The pixel colors have the following meaning:

White structurally zero element Black zero element Blue positive element Red negative element Brown nearly zero element

Definition at line 628 of file graphics.c.

void fasp_dcsr_subplot ( const dCSRmat A,
const char *  filename,
INT  size 
)

Write sparse matrix pattern in BMP file format.

Parameters
APointer to the dCSRmat matrix
filenameFile name
sizesize*size is the picture size for the picture
Author
Chensong Zhang
Date
03/29/2009
Note
The routine fasp_dcsr_subplot writes pattern of the specified dCSRmat matrix in uncompressed BMP file format (Windows bitmap) to a binary file whose name is specified by the character string filename.

Each pixel corresponds to one matrix element. The pixel colors have the following meaning:

White structurally zero element Blue positive element Red negative element Brown nearly zero element

Definition at line 44 of file graphics.c.

void fasp_grid2d_plot ( pgrid2d  pg,
INT  level 
)

Output grid to a EPS file.

Parameters
pgPointer to grid in 2d
levelNumber of levels
Author
Chensong Zhang
Date
03/29/2009

Definition at line 172 of file graphics.c.