PLASMA  2.4.5
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
core_dlaset2.c File Reference
#include <lapacke.h>
#include "common.h"
Include dependency graph for core_dlaset2.c:

Go to the source code of this file.

Functions

void CORE_dlaset2 (PLASMA_enum uplo, int M, int N, double alpha, double *A, int LDA)
void QUARK_CORE_dlaset2 (Quark *quark, Quark_Task_Flags *task_flags, PLASMA_enum uplo, int M, int N, double alpha, double *A, int LDA)
void CORE_dlaset2_quark (Quark *quark)

Detailed Description

PLASMA core_blas kernel PLASMA is a software package provided by Univ. of Tennessee, Univ. of California Berkeley and Univ. of Colorado Denver

Version:
2.4.5
Author:
Hatem Ltaief
Date:
2010-11-15 d Tue Nov 22 14:35:21 2011

Definition in file core_dlaset2.c.


Function Documentation

void CORE_dlaset2 ( PLASMA_enum  uplo,
int  M,
int  N,
double  alpha,
double *  A,
int  LDA 
)

CORE_dlaset2 - Sets the elements of the matrix A to alpha. Not LAPACK compliant! Read below.

Parameters:
[in]uploSpecifies which elements of the matrix are to be set = PlasmaUpper: STRICT Upper part of A is set to alpha; = PlasmaLower: STRICT Lower part of A is set to alpha; = PlasmaUpperLower: ALL elements of A are set to alpha. Not LAPACK Compliant.
[in]MThe number of rows of the matrix A. M >= 0.
[in]NThe number of columns of the matrix A. N >= 0.
[in]alphaThe constant to which the elements are to be set.
[in,out]AOn entry, the M-by-N tile A. On exit, A has been set to alpha accordingly.
[in]LDAThe leading dimension of the array A. LDA >= max(1,M).

Definition at line 56 of file core_dlaset2.c.

References lapack_const, PlasmaLower, and PlasmaUpper.

{
if (uplo == PlasmaUpper) {
LAPACKE_dlaset_work(
LAPACK_COL_MAJOR,
M, N-1, alpha, alpha, A+LDA, LDA);
}
else if (uplo == PlasmaLower) {
LAPACKE_dlaset_work(
LAPACK_COL_MAJOR,
M-1, N, alpha, alpha, A+1, LDA);
}
else {
LAPACKE_dlaset_work(
LAPACK_COL_MAJOR,
M, N, alpha, alpha, A, LDA);
}
}

Here is the caller graph for this function:

void CORE_dlaset2_quark ( Quark quark)

Definition at line 103 of file core_dlaset2.c.

References A, CORE_dlaset2(), quark_unpack_args_6, and uplo.

{
int uplo;
int M;
int N;
double alpha;
double *A;
int LDA;
quark_unpack_args_6(quark, uplo, M, N, alpha, A, LDA);
CORE_dlaset2(uplo, M, N, alpha, A, LDA);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void QUARK_CORE_dlaset2 ( Quark quark,
Quark_Task_Flags task_flags,
PLASMA_enum  uplo,
int  M,
int  N,
double  alpha,
double *  A,
int  LDA 
)

Definition at line 82 of file core_dlaset2.c.

References CORE_dlaset2_quark(), OUTPUT, QUARK_Insert_Task(), and VALUE.

{
sizeof(PLASMA_enum), &uplo, VALUE,
sizeof(int), &M, VALUE,
sizeof(int), &N, VALUE,
sizeof(double), &alpha, VALUE,
sizeof(double)*M*N, A, OUTPUT,
sizeof(int), &LDA, VALUE,
0);
}

Here is the call graph for this function:

Here is the caller graph for this function: