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

Simple array operations – init, set, copy, etc. More...

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

Go to the source code of this file.

Functions

void fasp_darray_set (const INT n, REAL *x, const REAL val)
 Set initial value for an array to be x=val. More...
 
void fasp_iarray_set (const INT n, INT *x, const INT val)
 Set initial value for an array to be x=val. More...
 
void fasp_ldarray_set (const INT n, LONGREAL *x, const LONGREAL val)
 Set initial value for an array to be x=val. More...
 
void fasp_darray_cp (const INT n, const REAL *x, REAL *y)
 Copy an array to the other y=x. More...
 
void fasp_iarray_cp (const INT n, const INT *x, INT *y)
 Copy an array to the other y=x. More...
 

Detailed Description

Simple array operations – init, set, copy, etc.

Note
This file contains Level-0 (Aux) functions. It requires: 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 AuxArray.c.

Function Documentation

◆ fasp_darray_cp()

void fasp_darray_cp ( const INT  n,
const REAL x,
REAL y 
)

Copy an array to the other y=x.

Parameters
nNumber of variables
xPointer to the original vector
yPointer to the destination vector
Author
Chensong Zhang
Date
2010/04/03

Definition at line 210 of file AuxArray.c.

◆ fasp_darray_set()

void fasp_darray_set ( const INT  n,
REAL x,
const REAL  val 
)

Set initial value for an array to be x=val.

Parameters
nNumber of variables
xPointer to the vector
valInitial value for the REAL array
Author
Chensong Zhang
Date
04/03/2010

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

Definition at line 41 of file AuxArray.c.

◆ fasp_iarray_cp()

void fasp_iarray_cp ( const INT  n,
const INT x,
INT y 
)

Copy an array to the other y=x.

Parameters
nNumber of variables
xPointer to the original vector
yPointer to the destination vector
Author
Chunsheng Feng, Xiaoqiang Yue
Date
05/23/2012

Definition at line 227 of file AuxArray.c.

◆ fasp_iarray_set()

void fasp_iarray_set ( const INT  n,
INT x,
const INT  val 
)

Set initial value for an array to be x=val.

Parameters
nNumber of variables
xPointer to the vector
valInitial value for the REAL array
Author
Chensong Zhang
Date
04/03/2010

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

Definition at line 98 of file AuxArray.c.

◆ fasp_ldarray_set()

void fasp_ldarray_set ( const INT  n,
LONGREAL x,
const LONGREAL  val 
)

Set initial value for an array to be x=val.

Parameters
nNumber of variables
xPointer to the vector
valInitial value for the LONGREAL array
Author
Ting Lai
Date
09/05/2022

Definition at line 154 of file AuxArray.c.