Skip to content

Commit

Permalink
fix & update enums (#26)
Browse files Browse the repository at this point in the history
* fix & update enums

* Update cblas.d

* Update cblas.d
  • Loading branch information
9il authored Jul 30, 2018
1 parent e66d3b4 commit bc313b0
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions source/cblas/cblas.d
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,22 @@ else
debug pragma(msg, "blasint = " ~ blasint.stringof);

///
enum CBLAS_ORDER : blasint {
enum CBLAS_LAYOUT {
///
RowMajor=101,
///
ColMajor=102
};

///
alias Layout = CBLAS_LAYOUT;

alias CBLAS_ORDER = CBLAS_LAYOUT;

alias Order = CBLAS_ORDER;

///
enum CBLAS_TRANSPOSE : blasint {
enum CBLAS_TRANSPOSE {
///
NoTrans=111,
///
Expand All @@ -72,7 +76,7 @@ enum CBLAS_TRANSPOSE : blasint {
alias Transpose = CBLAS_TRANSPOSE;

///
enum CBLAS_UPLO : blasint {
enum CBLAS_UPLO {
///
Upper=121,
///
Expand All @@ -83,7 +87,7 @@ enum CBLAS_UPLO : blasint {
alias Uplo = CBLAS_UPLO;

///
enum CBLAS_DIAG : blasint {
enum CBLAS_DIAG {
///
NonUnit=131,
///
Expand All @@ -94,7 +98,7 @@ enum CBLAS_DIAG : blasint {
alias Diag = CBLAS_DIAG;

///
enum CBLAS_SIDE : blasint {
enum CBLAS_SIDE {
///
Left=141,
///
Expand All @@ -104,6 +108,19 @@ enum CBLAS_SIDE : blasint {
///
alias Side = CBLAS_SIDE;

///
enum CBLAS_OFFSET {
///
RowOffset=171,
///
ColOffset=172,
///
FixOffset=173
};

///
alias Offset = CBLAS_OFFSET;

version(OPENBLAS)
{
/// Set the number of threads on runtime.
Expand Down

0 comments on commit bc313b0

Please sign in to comment.