|
PLASMA
2.4.5
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
|
Example using LQ factorization. More...
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <math.h>#include <plasma.h>#include <cblas.h>#include <lapacke.h>#include <core_blas.h>
Go to the source code of this file.
Macros | |
| #define | max(a, b) ((a) > (b) ? (a) : (b)) |
| #define | min(a, b) ((a) < (b) ? (a) : (b)) |
Functions | |
| int | check_orthogonality (int, int, int, float *) |
| int | check_factorization (int, int, float *, float *, int, float *) |
| int | main () |
Variables | |
| int | IONE = 1 |
| int | ISEED [4] = {0,0,0,1} |
Example using LQ factorization.
PLASMA testing routines PLASMA is a software package provided by Univ. of Tennessee, Univ. of California Berkeley and Univ. of Colorado Denver
Definition in file example_sgelqf.c.
| #define max | ( | a, | |
| b | |||
| ) | ((a) > (b) ? (a) : (b)) |
Definition at line 28 of file example_sgelqf.c.
| #define min | ( | a, | |
| b | |||
| ) | ((a) < (b) ? (a) : (b)) |
Definition at line 31 of file example_sgelqf.c.
| int check_factorization | ( | int | M, |
| int | N, | ||
| float * | A1, | ||
| float * | A2, | ||
| int | LDA, | ||
| float * | Q | ||
| ) |
Definition at line 157 of file example_sgelqf.c.
References cblas_sgemm(), CblasColMajor, CblasNoTrans, L, lapack_const, max, and PlasmaInfNorm.

| int check_orthogonality | ( | int | M, |
| int | N, | ||
| int | LDQ, | ||
| float * | Q | ||
| ) |
Definition at line 107 of file example_sgelqf.c.
References cblas_ssyrk(), CblasColMajor, CblasNoTrans, CblasTrans, CblasUpper, lapack_const, min, and PlasmaInfNorm.

| int main | ( | ) |
Definition at line 40 of file example_sgelqf.c.
References check_factorization(), check_orthogonality(), IONE, ISEED, min, PLASMA_Alloc_Workspace_sgelqf(), PLASMA_Finalize(), PLASMA_Init(), PLASMA_sgelqf(), PLASMA_sorglq(), Q, and T.

| int IONE = 1 |
Definition at line 37 of file example_sgelqf.c.
| int ISEED[4] = {0,0,0,1} |
Definition at line 38 of file example_sgelqf.c.