forked from hunter-packages/arrayfire
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblas.cpp
More file actions
40 lines (34 loc) · 1.06 KB
/
blas.cpp
File metadata and controls
40 lines (34 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*******************************************************
* Copyright (c) 2015, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
********************************************************/
#include <af/blas.h>
#include "symbol_manager.hpp"
af_err af_matmul( af_array *out ,
const af_array lhs, const af_array rhs,
const af_mat_prop optLhs, const af_mat_prop optRhs)
{
CHECK_ARRAYS(lhs, rhs);
return CALL(out, lhs, rhs, optLhs, optRhs);
}
af_err af_dot( af_array *out,
const af_array lhs, const af_array rhs,
const af_mat_prop optLhs, const af_mat_prop optRhs)
{
CHECK_ARRAYS(lhs, rhs);
return CALL(out, lhs, rhs, optLhs, optRhs);
}
af_err af_transpose(af_array *out, af_array in, const bool conjugate)
{
CHECK_ARRAYS(in);
return CALL(out, in, conjugate);
}
af_err af_transpose_inplace(af_array in, const bool conjugate)
{
CHECK_ARRAYS(in);
return CALL(in, conjugate);
}