Hands-On
Exercises for ScaLAPACK
Additional examples: This directory contains additional examples
illustrating the use of ScaLAPACK functionalities:
- example1.f,
example2.f, and
example3.f show
how to generate a ScaLAPACK matrix.
- pddttrdrv.c
(pddttrdrv.f)
shows the use of the ScaLAPACK routines PDDTTRFand PDDTTRS to factor
and solve a (diagonally dominant) tridiagonal systemof linear equations
Tx = b.
- pdpttr_2.c
(pdpttr_2.f) shows
the use of the ScaLAPACK routines PDPTTRF and PPPTTRS to factor and
solve a symmetric positive definite tridiagonal system of linear
equations Tx = b, in two distinct contexts.
- pdgesvddrv.f
reads a (full) matrix A
from a file, distributes A among the available processors and then call
the ScaLAPACK subroutine PDGESVD to compute the SVD of A, i.e.
A=U*S*V^{T}. It requires the file pdgesvddrv.dat,
which should contain: line 1, the name of the file where A will be read
from; line 2, the number of rows of A; line 3: the number of columns of
A. If the first 100 rows of the file A.dat are used to generate a matrix A of dimension 10-by-10 the corresponding SVD is given in the file A.SVD.
- pzdtt_col_major.c:
shows the use of the ScaLAPACK routines PZDTTRF and PZDTTRS to factor
and solve a tridiagonal system of linear equations in nprow distinct
contexts, column-major ordering.
- pzdtt_rwo_major.c:
shows the use of the ScaLAPACK routines PZDTTRF and PZDTTRS to factor
and solve a tridiagonal system of linear equations in nprow distinct
contexts, row-major ordering.