|
PLASMA
2.4.5
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
|
Example for solving overdetermined or underdetemined linear systems. 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_solution (int, int, int, PLASMA_Complex32_t *, int, PLASMA_Complex32_t *, PLASMA_Complex32_t *, int) |
| int | main () |
Variables | |
| int | IONE = 1 |
| int | ISEED [4] = {0,0,0,1} |
Example for solving overdetermined or underdetemined linear systems.
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_cgels.c.
| #define max | ( | a, | |
| b | |||
| ) | ((a) > (b) ? (a) : (b)) |
Definition at line 28 of file example_cgels.c.
| #define min | ( | a, | |
| b | |||
| ) | ((a) < (b) ? (a) : (b)) |
Definition at line 31 of file example_cgels.c.
| int check_solution | ( | int | M, |
| int | N, | ||
| int | NRHS, | ||
| PLASMA_Complex32_t * | A1, | ||
| int | LDA, | ||
| PLASMA_Complex32_t * | B1, | ||
| PLASMA_Complex32_t * | B2, | ||
| int | LDB | ||
| ) |
| int main | ( | ) |
Definition at line 39 of file example_cgels.c.
References check_solution(), IONE, ISEED, PLASMA_Alloc_Workspace_cgels(), PLASMA_cgels(), PLASMA_Finalize(), PLASMA_Init(), PlasmaNoTrans, and T.

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