SpM Handbook 1.2.4
Loading...
Searching...
No Matches
Spm_dev_scal

Scaling routines. More...

Functions

void s_spmScal (const float alpha, spmatrix_t *spm)
 Scal the spm: A = alpha * A.
 
void d_spmScal (const double alpha, spmatrix_t *spm)
 Scal the spm: A = alpha * A.
 
void c_spmScal (const float alpha, spmatrix_t *spm)
 Scal the spm: A = alpha * A.
 
void z_spmScal (const double alpha, spmatrix_t *spm)
 Scal the spm: A = alpha * A.
 

Detailed Description

Scaling routines.

Function Documentation

◆ s_spmScal()

void s_spmScal ( const float  alpha,
spmatrix_t spm 
)

Scal the spm: A = alpha * A.

Parameters
[in]alphaThe scaling parameter.
[in,out]spmThe spm which needs to be scaled.

Definition at line 39 of file s_spm_scal.c.

References spmatrix_s::nnzexp, and spmatrix_s::values.

Referenced by spmScal().

◆ d_spmScal()

void d_spmScal ( const double  alpha,
spmatrix_t spm 
)

Scal the spm: A = alpha * A.

Parameters
[in]alphaThe scaling parameter.
[in,out]spmThe spm which needs to be scaled.

Definition at line 39 of file d_spm_scal.c.

References spmatrix_s::nnzexp, and spmatrix_s::values.

Referenced by spmScal().

◆ c_spmScal()

void c_spmScal ( const float  alpha,
spmatrix_t spm 
)

Scal the spm: A = alpha * A.

Parameters
[in]alphaThe scaling parameter.
[in,out]spmThe spm which needs to be scaled.

Definition at line 39 of file c_spm_scal.c.

References spmatrix_s::nnzexp, and spmatrix_s::values.

Referenced by spmScal().

◆ z_spmScal()

void z_spmScal ( const double  alpha,
spmatrix_t spm 
)

Scal the spm: A = alpha * A.

Parameters
[in]alphaThe scaling parameter.
[in,out]spmThe spm which needs to be scaled.

Definition at line 39 of file z_spm_scal.c.

References spmatrix_s::nnzexp, and spmatrix_s::values.

Referenced by spmScal().