Docsity

Using BLAS and LAPACK, Makefile and Subversion – Assignment 5 | CAAM 420, Assignments of Mathematics

Toggle sidebar
bg1
CAAM 420 Fall 2007
Homework 5
Due 10/26/07 at the start of class. Time will be given in lab on 10/19/07 to work on this
homework.
Part 1: Using BLAS and LAPACK
Q1.
i. Create a ComplexMatrixBlasMultiply multiply routine function that calls the BLAS
function zgemm to compute the matrix product of two complex valued matrices.
ii. Create a ComplexMatrixLapackInverse inverse function that uses the LAPACK
functions zgetrf and zgetri to compute the inverse of a complex valued matrix.
iii. Create a ComplexMatrixLapackSolve function that uses the LAPACK functions
zgetrf and zgetrs to solve the system
AX =B
for
X
given complex matrices
A
and
B
iv. Create a ComplexMatrixLapackEigenvalues function that uses the LAPACK
function zgeev to find all the eigenvalues of a complex valued matrix.
vi. Create a ComplexMatrixLapackSVD function that uses the appropriate LAPACK
function to find the singular value decomposition of a complex valued matrix.
v. Devise a main.c program that performs tests of your own design to determine if each
of the functions from i-vi are working as expected. [You may use Matlab or similar
mathematical platform to help with these tests]. Document your findings.
vi. Add compatibility checks for each of the functions i-vi to make sure the matrices
being operated on have appropriate dimensions.
Part 2: Makefile and Subversion
i. Create a Makefile for compiling your homework project.
ii. Submit your homework code (.c and Makefile files only to the class Subversion server)

Partial preview of the text

Download Using BLAS and LAPACK, Makefile and Subversion – Assignment 5 | CAAM 420 and more Assignments Mathematics in PDF only on Docsity!

CAAM 420 Fall 2007

Homework 5 Due 10/26/07 at the start of class. Time will be given in lab on 10/19/07 to work on this homework. Part 1: Using BLAS and LAPACK Q1. i. Create a ComplexMatrixBlasMultiply multiply routine function that calls the BLAS function zgemm to compute the matrix product of two complex valued matrices. ii. Create a ComplexMatrixLapackInverse inverse function that uses the LAPACK functions zgetrf and zgetri to compute the inverse of a complex valued matrix. iii. Create a ComplexMatrixLapackSolve function that uses the LAPACK functions

zgetrf and zgetrs to solve the system AX = B for X given complex matrices A and B

iv. Create a ComplexMatrixLapackEigenvalues function that uses the LAPACK function zgeev to find all the eigenvalues of a complex valued matrix. vi. Create a ComplexMatrixLapackSVD function that uses the appropriate LAPACK function to find the singular value decomposition of a complex valued matrix. v. Devise a main.c program that performs tests of your own design to determine if each of the functions from i-vi are working as expected. [You may use Matlab or similar mathematical platform to help with these tests]. Document your findings. vi. Add compatibility checks for each of the functions i-vi to make sure the matrices being operated on have appropriate dimensions. Part 2: Makefile and Subversion i. Create a Makefile for compiling your homework project. ii. Submit your homework code (.c and Makefile files only to the class Subversion server)