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

Sparse matrix operations for dCOOmat matrices. More...

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

Go to the source code of this file.

Functions

dCOOmat fasp_dcoo_create (const INT m, const INT n, const INT nnz)
 Create IJ sparse matrix data memory space. More...
 
void fasp_dcoo_alloc (const INT m, const INT n, const INT nnz, dCOOmat *A)
 Allocate COO sparse matrix memory space. More...
 
void fasp_dcoo_free (dCOOmat *A)
 Free IJ sparse matrix data memory space. More...
 
void fasp_dcoo_shift (dCOOmat *A, const INT offset)
 Re-index a REAL matrix in IJ format to make the index starting from 0 or 1. More...
 

Detailed Description

Sparse matrix operations for dCOOmat matrices.

Note
This file contains Level-1 (Bla) functions. It requires: AuxMemory.c and AuxThreads.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 BlaSparseCOO.c.

Function Documentation

◆ fasp_dcoo_alloc()

void fasp_dcoo_alloc ( const INT  m,
const INT  n,
const INT  nnz,
dCOOmat A 
)

Allocate COO sparse matrix memory space.

Parameters
mNumber of rows
nNumber of columns
nnzNumber of nonzeros
APointer to the dCSRmat matrix
Author
Xiaozhe Hu
Date
03/25/2013

Definition at line 70 of file BlaSparseCOO.c.

◆ fasp_dcoo_create()

dCOOmat fasp_dcoo_create ( const INT  m,
const INT  n,
const INT  nnz 
)

Create IJ sparse matrix data memory space.

Parameters
mNumber of rows
nNumber of columns
nnzNumber of nonzeros
Returns
A The new dCOOmat matrix
Author
Chensong Zhang
Date
2010/04/06

Definition at line 42 of file BlaSparseCOO.c.

◆ fasp_dcoo_free()

void fasp_dcoo_free ( dCOOmat A)

Free IJ sparse matrix data memory space.

Parameters
APointer to the dCOOmat matrix
Author
Chensong Zhang
Date
2010/04/03

Definition at line 102 of file BlaSparseCOO.c.

◆ fasp_dcoo_shift()

void fasp_dcoo_shift ( dCOOmat A,
const INT  offset 
)

Re-index a REAL matrix in IJ format to make the index starting from 0 or 1.

Parameters
APointer to IJ matrix
offsetSize of offset (1 or -1)
Author
Chensong Zhang
Date
2010/04/06

Modified by Chunsheng Feng, Zheng Li on 08/25/2012

Definition at line 124 of file BlaSparseCOO.c.