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

Sparse matrix operations for dSTRmat matrices. More...

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

Go to the source code of this file.

Functions

dSTRmat fasp_dstr_create (const INT nx, const INT ny, const INT nz, const INT nc, const INT nband, INT *offsets)
 Create STR sparse matrix data memory space. More...
 
void fasp_dstr_alloc (const INT nx, const INT ny, const INT nz, const INT nxy, const INT ngrid, const INT nband, const INT nc, INT *offsets, dSTRmat *A)
 Allocate STR sparse matrix memory space. More...
 
void fasp_dstr_free (dSTRmat *A)
 Free STR sparse matrix data memeory space. More...
 
void fasp_dstr_cp (const dSTRmat *A, dSTRmat *B)
 Copy a dSTRmat to a new one B=A. More...
 

Detailed Description

Sparse matrix operations for dSTRmat matrices.

Note
This file contains Level-1 (Bla) 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 BlaSparseSTR.c.

Function Documentation

◆ fasp_dstr_alloc()

void fasp_dstr_alloc ( const INT  nx,
const INT  ny,
const INT  nz,
const INT  nxy,
const INT  ngrid,
const INT  nband,
const INT  nc,
INT offsets,
dSTRmat A 
)

Allocate STR sparse matrix memory space.

Parameters
nxNumber of grids in x direction
nyNumber of grids in y direction
nzNumber of grids in z direction
nxyNumber of grids in x-y plane
ngridNumber of grids
nbandNumber of off-diagonal bands
ncNumber of components
offsetsShift from diagonal
APointer to the dSTRmat matrix
Author
Shiquan Zhang, Xiaozhe Hu
Date
05/17/2010

Definition at line 93 of file BlaSparseSTR.c.

◆ fasp_dstr_cp()

void fasp_dstr_cp ( const dSTRmat A,
dSTRmat B 
)

Copy a dSTRmat to a new one B=A.

Parameters
APointer to the dSTRmat matrix
BPointer to the dSTRmat matrix
Author
Zhiyang Zhou
Date
04/21/2010

Definition at line 162 of file BlaSparseSTR.c.

◆ fasp_dstr_create()

dSTRmat fasp_dstr_create ( const INT  nx,
const INT  ny,
const INT  nz,
const INT  nc,
const INT  nband,
INT offsets 
)

Create STR sparse matrix data memory space.

Parameters
nxNumber of grids in x direction
nyNumber of grids in y direction
nzNumber of grids in z direction
ncNumber of components
nbandNumber of off-diagonal bands
offsetsShift from diagonal
Returns
The dSTRmat matrix
Author
Shiquan Zhang, Xiaozhe Hu
Date
05/17/2010

Definition at line 41 of file BlaSparseSTR.c.

◆ fasp_dstr_free()

void fasp_dstr_free ( dSTRmat A)

Free STR sparse matrix data memeory space.

Parameters
APointer to the dSTRmat matrix
Author
Shiquan Zhang, Xiaozhe Hu
Date
05/17/2010

Definition at line 136 of file BlaSparseSTR.c.