Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
Loading...
Searching...
No Matches
AuxGraphics.c File Reference

Graphical output for CSR matrix. More...

#include <math.h>
#include "fasp.h"
#include "fasp_grid.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_dcsr_plot (const dCSRmat *A, const char *fname)
 Write dCSR 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_dbsr_plot (const dBSRmat *A, const char *fname)
 Write dBSR sparse matrix pattern in BMP file format. More...
 
void fasp_grid2d_plot (pgrid2d pg, int level)
 Output grid to a EPS file. More...
 

Detailed Description

Graphical output for CSR matrix.

Note
This file contains Level-0 (Aux) functions. It requires: AuxMemory.c

Copyright (C) 2009–Present by the FASP team. All rights reserved.

Released under the terms of the GNU Lesser General Public License 3.0 or later.

Definition in file AuxGraphics.c.

Function Documentation

◆ fasp_dbsr_plot()

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

Write dBSR sparse matrix pattern in BMP file format.

Parameters
APointer to the dBSRmat matrix
fnameFile 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 339 of file AuxGraphics.c.

◆ fasp_dbsr_subplot()

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 259 of file AuxGraphics.c.

◆ fasp_dcsr_plot()

void 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 117 of file AuxGraphics.c.

◆ fasp_dcsr_subplot()

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 57 of file AuxGraphics.c.

◆ fasp_grid2d_plot()

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 478 of file AuxGraphics.c.