![]() |
Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
|
Linear algebraic operations for dCSRmat matrices. More...
Go to the source code of this file.
Functions | |
SHORT | fasp_blas_dcsr_add (const dCSRmat *A, const REAL alpha, const dCSRmat *B, const REAL beta, dCSRmat *C) |
compute C = alpha*A + beta*B in CSR format More... | |
void | fasp_blas_dcsr_axm (dCSRmat *A, const REAL alpha) |
Multiply a sparse matrix A in CSR format by a scalar alpha. More... | |
void | fasp_blas_dcsr_mxv (const dCSRmat *A, const REAL *x, REAL *y) |
Matrix-vector multiplication y = A*x. More... | |
void | fasp_blas_dcsr_mxv_agg (const dCSRmat *A, const REAL *x, REAL *y) |
Matrix-vector multiplication y = A*x (nonzeros of A = 1) More... | |
void | fasp_blas_dcsr_aAxpy (const REAL alpha, const dCSRmat *A, const REAL *x, REAL *y) |
Matrix-vector multiplication y = alpha*A*x + y. More... | |
void | fasp_blas_ldcsr_aAxpy (const REAL alpha, const dCSRmat *A, const LONGREAL *x, REAL *y) |
Matrix-vector multiplication y = alpha*A*x + y. More... | |
void | fasp_blas_dcsr_aAxpy_agg (const REAL alpha, const dCSRmat *A, const REAL *x, REAL *y) |
Matrix-vector multiplication y = alpha*A*x + y (nonzeros of A = 1) More... | |
REAL | fasp_blas_dcsr_vmv (const dCSRmat *A, const REAL *x, const REAL *y) |
vector-Matrix-vector multiplication alpha = y'*A*x More... | |
void | fasp_blas_dcsr_mxm (const dCSRmat *A, const dCSRmat *B, dCSRmat *C) |
Sparse matrix multiplication C=A*B. More... | |
void | fasp_blas_dcsr_rap (const dCSRmat *R, const dCSRmat *A, const dCSRmat *P, dCSRmat *RAP) |
Triple sparse matrix multiplication B=R*A*P. More... | |
void | fasp_blas_dcsr_rap_agg (const dCSRmat *R, const dCSRmat *A, const dCSRmat *P, dCSRmat *RAP) |
Triple sparse matrix multiplication B=R*A*P (nonzeros of R, P = 1) More... | |
void | fasp_blas_dcsr_rap_agg1 (const dCSRmat *R, const dCSRmat *A, const dCSRmat *P, dCSRmat *B) |
Triple sparse matrix multiplication B=R*A*P (nonzeros of R, P = 1) More... | |
void | fasp_blas_dcsr_ptap (const dCSRmat *Pt, const dCSRmat *A, const dCSRmat *P, dCSRmat *Ac) |
Triple sparse matrix multiplication B=P'*A*P. More... | |
dCSRmat | fasp_blas_dcsr_rap2 (INT *ir, INT *jr, REAL *r, INT *ia, INT *ja, REAL *a, INT *ipt, INT *jpt, REAL *pt, INT n, INT nc, INT *maxrpout, INT *ipin, INT *jpin) |
Compute R*A*P. More... | |
void | fasp_blas_dcsr_rap4 (dCSRmat *R, dCSRmat *A, dCSRmat *P, dCSRmat *B, INT *icor_ysk) |
Triple sparse matrix multiplication B=R*A*P. More... | |
Variables | |
unsigned long | total_alloc_mem |
unsigned long | total_alloc_count |
Linear algebraic operations for dCSRmat matrices.
Example: If you do c=a+b:
Copyright (C) 2009–Present by the FASP team. All rights reserved.
Definition in file BlaSpmvCSR.c.
Matrix-vector multiplication y = alpha*A*x + y.
alpha | REAL factor alpha |
A | Pointer to dCSRmat matrix A |
x | Pointer to array x |
y | Pointer to array y |
Modified by Chunsheng Feng, Xiaoqiang Yue on 05/26/2012
Definition at line 494 of file BlaSpmvCSR.c.
Matrix-vector multiplication y = alpha*A*x + y (nonzeros of A = 1)
alpha | REAL factor alpha |
A | Pointer to dCSRmat matrix A |
x | Pointer to array x |
y | Pointer to array y |
Modified by Chunsheng Feng, Zheng Li on 08/29/2012
Definition at line 727 of file BlaSpmvCSR.c.
SHORT fasp_blas_dcsr_add | ( | const dCSRmat * | A, |
const REAL | alpha, | ||
const dCSRmat * | B, | ||
const REAL | beta, | ||
dCSRmat * | C | ||
) |
compute C = alpha*A + beta*B in CSR format
A | Pointer to dCSRmat matrix |
alpha | REAL factor alpha |
B | Pointer to dCSRmat matrix |
beta | REAL factor beta |
C | Pointer to dCSRmat matrix |
Modified by Chunsheng Feng, Zheng Li on 06/29/2012
Definition at line 60 of file BlaSpmvCSR.c.
Multiply a sparse matrix A in CSR format by a scalar alpha.
A | Pointer to dCSRmat matrix A |
alpha | REAL factor alpha |
Modified by Chunsheng Feng, Zheng Li on 06/29/2012
Definition at line 220 of file BlaSpmvCSR.c.
Sparse matrix multiplication C=A*B.
A | Pointer to the dCSRmat matrix A |
B | Pointer to the dCSRmat matrix B |
C | Pointer to dCSRmat matrix equal to A*B |
Definition at line 893 of file BlaSpmvCSR.c.
Matrix-vector multiplication y = A*x.
A | Pointer to dCSRmat matrix A |
x | Pointer to array x |
y | Pointer to array y |
Modified by Chunsheng Feng, Xiaoqiang Yue on 05/26/2012
Definition at line 242 of file BlaSpmvCSR.c.
Matrix-vector multiplication y = A*x (nonzeros of A = 1)
A | Pointer to dCSRmat matrix A |
x | Pointer to array x |
y | Pointer to array y |
Modified by Chunsheng Feng, Zheng Li on 08/29/2012
Definition at line 438 of file BlaSpmvCSR.c.
Triple sparse matrix multiplication B=P'*A*P.
Pt | Pointer to the restriction matrix |
A | Pointer to the fine coefficient matrix |
P | Pointer to the prolongation matrix |
Ac | Pointer to the coarse coefficient matrix (output) |
Modified by Chunsheng Feng, Zheng Li on 10/19/2012
Definition at line 1745 of file BlaSpmvCSR.c.
Triple sparse matrix multiplication B=R*A*P.
R | Pointer to the dCSRmat matrix R |
A | Pointer to the dCSRmat matrix A |
P | Pointer to the dCSRmat matrix P |
RAP | Pointer to dCSRmat matrix equal to R*A*P |
Modified by Chunsheng Feng, Xiaoqiang Yue on 05/26/2012
Definition at line 999 of file BlaSpmvCSR.c.
dCSRmat fasp_blas_dcsr_rap2 | ( | INT * | ir, |
INT * | jr, | ||
REAL * | r, | ||
INT * | ia, | ||
INT * | ja, | ||
REAL * | a, | ||
INT * | ipt, | ||
INT * | jpt, | ||
REAL * | pt, | ||
INT | n, | ||
INT | nc, | ||
INT * | maxrpout, | ||
INT * | ipin, | ||
INT * | jpin | ||
) |
Compute R*A*P.
Definition at line 1855 of file BlaSpmvCSR.c.
Triple sparse matrix multiplication B=R*A*P.
R | pointer to the dCSRmat matrix |
A | pointer to the dCSRmat matrix |
P | pointer to the dCSRmat matrix |
B | pointer to dCSRmat matrix equal to R*A*P |
icor_ysk | pointer to the array |
Definition at line 1954 of file BlaSpmvCSR.c.
void fasp_blas_dcsr_rap_agg | ( | const dCSRmat * | R, |
const dCSRmat * | A, | ||
const dCSRmat * | P, | ||
dCSRmat * | RAP | ||
) |
Triple sparse matrix multiplication B=R*A*P (nonzeros of R, P = 1)
R | Pointer to the dCSRmat matrix R |
A | Pointer to the dCSRmat matrix A |
P | Pointer to the dCSRmat matrix P |
RAP | Pointer to dCSRmat matrix equal to R*A*P |
Modified by Chunsheng Feng, Xiaoqiang Yue on 05/26/2012
Definition at line 1276 of file BlaSpmvCSR.c.
void fasp_blas_dcsr_rap_agg1 | ( | const dCSRmat * | R, |
const dCSRmat * | A, | ||
const dCSRmat * | P, | ||
dCSRmat * | B | ||
) |
Triple sparse matrix multiplication B=R*A*P (nonzeros of R, P = 1)
R | Pointer to the dCSRmat matrix R |
A | Pointer to the dCSRmat matrix A |
P | Pointer to the dCSRmat matrix P |
B | Pointer to dCSRmat matrix equal to R*A*P |
Definition at line 1539 of file BlaSpmvCSR.c.
vector-Matrix-vector multiplication alpha = y'*A*x
A | Pointer to dCSRmat matrix A |
x | Pointer to array x |
y | Pointer to array y |
Definition at line 839 of file BlaSpmvCSR.c.
Matrix-vector multiplication y = alpha*A*x + y.
alpha | REAL factor alpha |
A | Pointer to dCSRmat matrix A |
x | Pointer to array x |
y | Pointer to array y |
Modified by TingLai on 08/01/2022
Definition at line 609 of file BlaSpmvCSR.c.
|
extern |
Total number of allocatations
|
extern |
Total allocated memory