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, PLASMA_Complex64_t *) |
int | check_factorization (int, int, PLASMA_Complex64_t *, PLASMA_Complex64_t *, int, PLASMA_Complex64_t *) |
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_zgelqf.c.
#define max | ( | a, | |
b | |||
) | ((a) > (b) ? (a) : (b)) |
Definition at line 28 of file example_zgelqf.c.
#define min | ( | a, | |
b | |||
) | ((a) < (b) ? (a) : (b)) |
Definition at line 31 of file example_zgelqf.c.
int check_factorization | ( | int | M, |
int | N, | ||
PLASMA_Complex64_t * | A1, | ||
PLASMA_Complex64_t * | A2, | ||
int | LDA, | ||
PLASMA_Complex64_t * | Q | ||
) |
Definition at line 157 of file example_zgelqf.c.
References CBLAS_SADDR, cblas_zgemm(), CblasColMajor, CblasNoTrans, L, lapack_const, max, and PlasmaInfNorm.
int check_orthogonality | ( | int | M, |
int | N, | ||
int | LDQ, | ||
PLASMA_Complex64_t * | Q | ||
) |
Definition at line 107 of file example_zgelqf.c.
References cblas_zherk(), CblasColMajor, CblasConjTrans, CblasNoTrans, CblasUpper, lapack_const, min, and PlasmaInfNorm.
int main | ( | ) |
Definition at line 40 of file example_zgelqf.c.
References check_factorization(), check_orthogonality(), IONE, ISEED, min, PLASMA_Alloc_Workspace_zgelqf(), PLASMA_Finalize(), PLASMA_Init(), PLASMA_zgelqf(), PLASMA_zunglq(), Q, and T.
int IONE = 1 |
Definition at line 37 of file example_zgelqf.c.
int ISEED[4] = {0,0,0,1} |
Definition at line 38 of file example_zgelqf.c.