![]() |
Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
|
Simple vector operations – init, set, copy, etc. More...
Go to the source code of this file.
Functions | |
SHORT | fasp_dvec_isnan (const dvector *u) |
Check a dvector whether there is NAN. More... | |
dvector | fasp_dvec_create (const INT m) |
Create dvector data space of REAL type. More... | |
ivector | fasp_ivec_create (const INT m) |
Create vector data space of INT type. More... | |
void | fasp_dvec_alloc (const INT m, dvector *u) |
Create dvector data space of REAL type. More... | |
void | fasp_ivec_alloc (const INT m, ivector *u) |
Create vector data space of INT type. More... | |
void | fasp_dvec_free (dvector *u) |
Free vector data space of REAL type. More... | |
void | fasp_ivec_free (ivector *u) |
Free vector data space of INT type. More... | |
void | fasp_dvec_rand (const INT n, dvector *x) |
Generate fake random REAL vector in the range from 0 to 1. More... | |
void | fasp_dvec_set (INT n, dvector *x, const REAL val) |
Initialize dvector x[i]=val for i=0:n-1. More... | |
void | fasp_ivec_set (INT n, ivector *u, const INT m) |
Set ivector value to be m. More... | |
void | fasp_dvec_cp (const dvector *x, dvector *y) |
Copy dvector x to dvector y. More... | |
REAL | fasp_dvec_maxdiff (const dvector *x, const dvector *y) |
Maximal difference of two dvector x and y. More... | |
void | fasp_dvec_symdiagscale (dvector *b, const dvector *diag) |
Symmetric diagonal scaling D^{-1/2}b. More... | |
Simple vector operations – init, set, copy, etc.
Copyright (C) 2009–Present by the FASP team. All rights reserved.
Definition in file AuxVector.c.
Create dvector data space of REAL type.
m | Number of rows |
u | Pointer to dvector (OUTPUT) |
Definition at line 105 of file AuxVector.c.
Copy dvector x to dvector y.
x | Pointer to dvector |
y | Pointer to dvector (MODIFIED) |
Definition at line 334 of file AuxVector.c.
Create dvector data space of REAL type.
m | Number of rows |
Definition at line 62 of file AuxVector.c.
void fasp_dvec_free | ( | dvector * | u | ) |
Free vector data space of REAL type.
u | Pointer to dvector which needs to be deallocated |
Definition at line 145 of file AuxVector.c.
Check a dvector whether there is NAN.
u | Pointer to dvector |
Definition at line 39 of file AuxVector.c.
Maximal difference of two dvector x and y.
x | Pointer to dvector |
y | Pointer to dvector |
Modified by chunsheng Feng, Zheng Li
Definition at line 357 of file AuxVector.c.
Generate fake random REAL vector in the range from 0 to 1.
n | Size of the vector |
x | Pointer to dvector |
Definition at line 192 of file AuxVector.c.
Initialize dvector x[i]=val for i=0:n-1.
n | Number of variables |
x | Pointer to dvector |
val | Initial value for the vector |
Modified by Chunsheng Feng, Xiaoqiang Yue on 05/23/2012
Definition at line 222 of file AuxVector.c.
Symmetric diagonal scaling D^{-1/2}b.
b | Pointer to dvector |
diag | Pointer to dvector: the diagonal entries |
Definition at line 410 of file AuxVector.c.
Create vector data space of INT type.
m | Number of rows |
u | Pointer to ivector (OUTPUT) |
Definition at line 125 of file AuxVector.c.
Create vector data space of INT type.
m | Number of rows |
Definition at line 84 of file AuxVector.c.
void fasp_ivec_free | ( | ivector * | u | ) |
Free vector data space of INT type.
u | Pointer to ivector which needs to be deallocated |
Definition at line 164 of file AuxVector.c.
Set ivector value to be m.
n | Number of variables |
m | Integer value of ivector |
u | Pointer to ivector (MODIFIED) |
Modified by Chunsheng Feng, Xiaoqiang Yue on 05/23/2012
Definition at line 291 of file AuxVector.c.