cavis/libnd4j/include/cblas_enum_conversion.h

85 lines
2.1 KiB
C
Raw Normal View History

2021-02-01 13:31:45 +01:00
/* ******************************************************************************
*
2019-06-06 14:21:15 +02:00
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
2021-02-01 13:31:45 +01:00
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
2019-06-06 14:21:15 +02:00
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
******************************************************************************/
//
// Created by agibsonccc on 2/6/16.
//
#ifndef NATIVEOPERATIONS_CBLAS_ENUM_CONVERSION_H_H
#define NATIVEOPERATIONS_CBLAS_ENUM_CONVERSION_H_H
#include <cblas.h>
/*
enum CBLAS_ORDER {CblasRowMajor=101, CblasColMajor=102 };
enum CBLAS_TRANSPOSE {CblasNoTrans=111, CblasTrans=112, CblasConjTrans=113,
AtlasConj=114};
enum CBLAS_UPLO {CblasUpper=121, CblasLower=122};
enum CBLAS_DIAG {CblasNonUnit=131, CblasUnit=132};
enum CBLAS_SIDE {CblasLeft=141, CblasRight=142};
*/
#include <system/dll.h>
2019-06-06 14:21:15 +02:00
#ifdef __cplusplus
extern "C" {
#endif
/**
* Converts a character
* to its proper enum
* for row (c) or column (f) ordering
* default is row major
*/
CBLAS_ORDER convertOrder(int from);
/**
* Converts a character to its proper enum
* t -> transpose
* n -> no transpose
* c -> conj
*/
CBLAS_TRANSPOSE convertTranspose(int from);
/**
* Upper or lower
* U/u -> upper
* L/l -> lower
*
* Default is upper
*/
CBLAS_UPLO convertUplo(int from);
/**
* For diagonals:
* u/U -> unit
* n/N -> non unit
*
* Default: unit
*/
CBLAS_DIAG convertDiag(int from);
/**
* Side of a matrix, left or right
* l /L -> left
* r/R -> right
* default: left
*/
CBLAS_SIDE convertSide(int from);
#ifdef __cplusplus
}
#endif
#endif //NATIVEOPERATIONS_CBLAS_ENUM_CONVERSION_H_H