[arrayfire] 253/408: Changes to style and fix compile errors
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.
commit bdbf30ee1f0edf49e04fb6b9a5c6138437a7179a
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Thu Aug 13 14:57:27 2015 -0400
Changes to style and fix compile errors
---
src/api/c/svd.cpp | 3 ++-
src/backend/cpu/svd.cpp | 6 +++---
src/backend/opencl/svd.cpp | 6 +++---
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/api/c/svd.cpp b/src/api/c/svd.cpp
index d49c02b..31f9aae 100644
--- a/src/api/c/svd.cpp
+++ b/src/api/c/svd.cpp
@@ -48,7 +48,8 @@ static inline void svd(af_array *s, af_array *u, af_array *vt, const af_array in
}
template <typename T>
-static inline void svdInPlace(af_array *s, af_array *u, af_array *vt, af_array in){
+static inline void svdInPlace(af_array *s, af_array *u, af_array *vt, af_array in)
+{
ArrayInfo info = getInfo(in); // ArrayInfo is the base class which
af::dim4 dims = info.dims();
int M = dims[0];
diff --git a/src/backend/cpu/svd.cpp b/src/backend/cpu/svd.cpp
index 4a1aebf..6c590d6 100644
--- a/src/backend/cpu/svd.cpp
+++ b/src/backend/cpu/svd.cpp
@@ -24,11 +24,11 @@
namespace cpu
{
- #define SVD_FUNC_DEF( FUNC ) \
+#define SVD_FUNC_DEF( FUNC ) \
template<typename T> FUNC##_func_def<T> FUNC##_func();
- #define SVD_FUNC( FUNC, TYPE, PREFIX ) \
- template<> FUNC##_func_def<TYPE> FUNC##_func<TYPE>() \
+#define SVD_FUNC( FUNC, TYPE, PREFIX ) \
+ template<> FUNC##_func_def<TYPE> FUNC##_func<TYPE>() \
{ return & LAPACK_NAME(PREFIX##FUNC); }
template<typename T>
diff --git a/src/backend/opencl/svd.cpp b/src/backend/opencl/svd.cpp
index bfb7438..406242e 100644
--- a/src/backend/opencl/svd.cpp
+++ b/src/backend/opencl/svd.cpp
@@ -30,9 +30,9 @@ void svdInPlace(Array<T> &s, Array<T> &u, Array<T> &vt, Array<T> &in)
}
-#define INSTANTIATE(T) \
- template void svd(Array<T> &s, Array<T> &u, Array<T> &vt, const Array<T> &in) \
- template void svdInPlace(Array<T> &s, Array<T> &u, Array<T> &vt, Array<T> &in)
+#define INSTANTIATE(T) \
+ template void svd(Array<T> &s, Array<T> &u, Array<T> &vt, const Array<T> &in); \
+ template void svdInPlace(Array<T> &s, Array<T> &u, Array<T> &vt, Array<T> &in);
INSTANTIATE(float)
INSTANTIATE(double)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list