-
PRUVOST Florent authored
change the way we include our own header files --> relative to the root - when plasma is in the same env, chameleon can take some headers not belonging to it (ex: #include descriptor.h, this file states in plasma install dir also) which make compilation errors
PRUVOST Florent authoredchange the way we include our own header files --> relative to the root - when plasma is in the same env, chameleon can take some headers not belonging to it (ex: #include descriptor.h, this file states in plasma install dir also) which make compilation errors
core_zlaset.c 2.20 KiB
/**
*
* @copyright (c) 2009-2014 The University of Tennessee and The University
* of Tennessee Research Foundation.
* All rights reserved.
* @copyright (c) 2012-2014 Inria. All rights reserved.
* @copyright (c) 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
*
**/
/**
*
* @file core_zlaset.c
*
* 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.5.0
* @comment This file has been automatically generated
* from Plasma 2.5.0 for MORSE 1.0.0
* @author Hatem Ltaief
* @author Mathieu Faverge
* @author Emmanuel Agullo
* @author Cedric Castagnede
* @date 2010-11-15
* @precisions normal z -> c d s
*
**/
#include "coreblas/include/lapacke.h"
#include "coreblas/include/coreblas.h"
/**
*
* @ingroup CORE_MORSE_Complex64_t
*
* CORE_zlaset - Sets the elements of the matrix A on the diagonal
* to beta and on the off-diagonals to alpha
*
*******************************************************************************
*
* @param[in] uplo
* Specifies which elements of the matrix are to be set
* = MorseUpper: Upper part of A is set;
* = MorseLower: Lower part of A is set;
* = MorseUpperLower: ALL elements of A are set.
*
* @param[in] M
* The number of rows of the matrix A. M >= 0.
*
* @param[in] N
* The number of columns of the matrix A. N >= 0.
*
* @param[in] alpha
* The constant to which the off-diagonal elements are to be set.
*
* @param[in] beta
* The constant to which the diagonal elements are to be set.
*
* @param[in,out] A
* On entry, the M-by-N tile A.
* On exit, A has been set accordingly.
*
* @param[in] LDA
* The leading dimension of the array A. LDA >= max(1,M).
*
**/
void CORE_zlaset(MORSE_enum uplo, int M, int N,
MORSE_Complex64_t alpha, MORSE_Complex64_t beta,
MORSE_Complex64_t *A, int LDA)
{
LAPACKE_zlaset_work(
LAPACK_COL_MAJOR,
morse_lapack_const(uplo),
M, N, alpha, beta, A, LDA);
}