[arrayfire] 344/408: Adding version guards for svd

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:27 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 9ef664cb63a9f3c429a1a2375d50e453e4493a21
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Tue Aug 25 08:17:10 2015 -0400

    Adding version guards for svd
---
 include/af/lapack.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/af/lapack.h b/include/af/lapack.h
index c70bf88..f1cf87a 100644
--- a/include/af/lapack.h
+++ b/include/af/lapack.h
@@ -14,6 +14,7 @@
 #ifdef __cplusplus
 namespace af
 {
+#if AF_API_VERSION >= 31
     /**
        C++ Interface for SVD decomposition
 
@@ -25,7 +26,9 @@ namespace af
        \ingroup lapack_factor_func_svd
     */
     AFAPI void svd(array &u, array &s, array &vt, const array &in);
+#endif
 
+#if AF_API_VERSION >= 31
     /**
        C++ Interface for SVD decomposition
 
@@ -37,6 +40,7 @@ namespace af
        \ingroup lapack_factor_func_svd
     */
     AFAPI void svdInPlace(array &u, array &s, array &vt, array &in);
+#endif
 
     /**
        C++ Interface for LU decomposition in packed format
@@ -240,6 +244,7 @@ namespace af
 extern "C" {
 #endif
 
+#if AF_API_VERSION >= 31
     /**
        C Interface for SVD decomposition
 
@@ -251,7 +256,9 @@ extern "C" {
        \ingroup lapack_factor_func_svd
     */
     AFAPI af_err af_svd(af_array *u, af_array *s, af_array *vt, const af_array in);
+#endif
 
+#if AF_API_VERSION >= 31
     /**
        C Interface for SVD decomposition
 
@@ -263,6 +270,7 @@ extern "C" {
        \ingroup lapack_factor_func_svd
     */
     AFAPI af_err af_svd_inplace(af_array *u, af_array *s, af_array *vt, af_array in);
+#endif
 
     /**
        C Interface for LU decomposition

-- 
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