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

Sparse matrix block operations. More...

#include <time.h>
#include "fasp.h"
#include "fasp_block.h"
#include "fasp_functs.h"

Go to the source code of this file.

Functions

void fasp_bdcsr_free (block_dCSRmat *A)
 Free block CSR sparse matrix data memory space. More...
 
SHORT fasp_dcsr_getblk (dCSRmat *A, INT *Is, INT *Js, const INT m, const INT n, dCSRmat *B)
 Get a sub CSR matrix of A with specified rows and columns. More...
 
SHORT fasp_dbsr_getblk (dBSRmat *A, INT *Is, INT *Js, const INT m, const INT n, dBSRmat *B)
 Get a sub BSR matrix of A with specified rows and columns. More...
 
dCSRmat fasp_dbsr_getblk_dcsr (dBSRmat *A)
 get dCSRmat block from a dBSRmat matrix More...
 
dCSRmat fasp_dbsr_Linfinity_dcsr (dBSRmat *A)
 get dCSRmat from a dBSRmat matrix using L_infinity norm of each small block More...
 

Detailed Description

Sparse matrix block operations.

Definition in file sparse_block.c.

Function Documentation

void fasp_bdcsr_free ( block_dCSRmat A)

Free block CSR sparse matrix data memory space.

Parameters
APointer to the block_dCSRmat matrix
Author
Xiaozhe Hu
Date
04/18/2014

Definition at line 30 of file sparse_block.c.

SHORT fasp_dbsr_getblk ( dBSRmat A,
INT Is,
INT Js,
const INT  m,
const INT  n,
dBSRmat B 
)

Get a sub BSR matrix of A with specified rows and columns.

Parameters
APointer to dBSRmat BSR matrix
BPointer to dBSRmat BSR matrix
IsPointer to selected rows
JsPointer to selected columns
mNumber of selected rows
nNumber of selected columns
Returns
FASP_SUCCESS if succeeded, otherwise return error information.
Author
Shiquan Zhang, Xiaozhe Hu
Date
12/25/2010

Modified by Chunsheng Feng, Xiaoqiang Yue on 05/23/2012

Definition at line 160 of file sparse_block.c.

dCSRmat fasp_dbsr_getblk_dcsr ( dBSRmat A)

get dCSRmat block from a dBSRmat matrix

Parameters
*APointer to the BSR format matrix
Returns
dCSRmat matrix if succeed, NULL if fail
Author
Xiaozhe Hu
Date
03/16/2012

Definition at line 256 of file sparse_block.c.

dCSRmat fasp_dbsr_Linfinity_dcsr ( dBSRmat A)

get dCSRmat from a dBSRmat matrix using L_infinity norm of each small block

Parameters
*APointer to the BSR format matrix
Returns
dCSRmat matrix if succeed, NULL if fail
Author
Xiaozhe Hu
Date
05/25/2014

Definition at line 312 of file sparse_block.c.

SHORT fasp_dcsr_getblk ( dCSRmat A,
INT Is,
INT Js,
const INT  m,
const INT  n,
dCSRmat B 
)

Get a sub CSR matrix of A with specified rows and columns.

Parameters
APointer to dCSRmat matrix
BPointer to dCSRmat matrix
IsPointer to selected rows
JsPointer to selected columns
mNumber of selected rows
nNumber of selected columns
Returns
FASP_SUCCESS if succeeded, otherwise return error information.
Author
Shiquan Zhang, Xiaozhe Hu
Date
12/25/2010

Modified by Chunsheng Feng, Xiaoqiang Yue on 05/23/2012

Definition at line 66 of file sparse_block.c.