petsc-3.9.4 2018-09-11
Report Typos and Errors
MatScale
Scales all elements of a matrix by a given number.
Synopsis
#include "petscmat.h"
PetscErrorCode
MatScale
(
Mat
mat,
PetscScalar
a)
Logically Collective on
Mat
Input Parameters
mat
- the matrix to be scaled
a
- the scaling value
Output Parameter
mat
-the scaled matrix
See Also
MatDiagonalScale
()
Level
intermediate
Location
src/mat/interface/matrix.c
Examples
src/mat/examples/tutorials/ex8.c.html
src/ksp/ksp/examples/tutorials/ex56.c.html
src/snes/examples/tutorials/ex70.c.html
src/ts/examples/tutorials/ex3.c.html
src/ts/examples/tutorials/ex50.c.html
src/tao/unconstrained/examples/tutorials/eptorsion2.c.html
src/tao/pde_constrained/examples/tutorials/elliptic.c.html
src/tao/pde_constrained/examples/tutorials/parabolic.c.html
src/tao/pde_constrained/examples/tutorials/hyperbolic.c.html
Implementations
MatScale_MPIAIJ in src/mat/impls/aij/mpi/mpiaij.c
MatScale_SeqAIJ in src/mat/impls/aij/seq/aij.c
MatScale_MPIBAIJ in src/mat/impls/baij/mpi/mpibaij.c
MatScale_SeqBAIJ in src/mat/impls/baij/seq/baij2.c
MatScale_SeqBAIJMKL in src/mat/impls/baij/seq/baijmkl/baijmkl.c
MatScale_Composite in src/mat/impls/composite/mcomposite.c
MatScale_MPIDense in src/mat/impls/dense/mpi/mmdense.c
MatScale_SeqDense in src/mat/impls/dense/seq/dense.c
MatScale_Elemental in src/mat/impls/elemental/matelem.cxx
MatScale_HYPRE in src/mat/impls/hypre/mhypre.c
MatScale_IS in src/mat/impls/is/matis.c
MatScale_MFFD in src/mat/impls/mffd/mffd.c
MatScale_Nest in src/mat/impls/nest/matnest.c
MatScale_Normal in src/mat/impls/normal/normm.c
MatScale_MPISBAIJ in src/mat/impls/sbaij/mpi/mpisbaij.c
MatScale_SeqSBAIJ in src/mat/impls/sbaij/seq/sbaij2.c
MatScale_MPISELL in src/mat/impls/sell/mpi/mpisell.c
MatScale_SeqSELL in src/mat/impls/sell/seq/sell.c
MatScale_Shell in src/mat/impls/shell/shell.c
MatScale_SubMatrix in src/mat/impls/submat/submat.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages