[arrayfire] 20/75: Renaming createArray to be createStridedArray

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:01:10 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.

commit f6d02366edf0709b3af3ebbbaca6de43407975a0
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Thu Feb 11 16:00:07 2016 -0500

    Renaming createArray to be createStridedArray
---
 docs/details/internal.dox    |  2 +-
 include/af/internal.h        | 24 ++++++++++++------------
 src/api/c/internal.cpp       | 16 ++++++++--------
 src/api/cpp/internal.cpp     | 14 +++++++-------
 src/api/unified/internal.cpp | 16 ++++++++--------
 5 files changed, 36 insertions(+), 36 deletions(-)

diff --git a/docs/details/internal.dox b/docs/details/internal.dox
index 879f819..5ac0642 100644
--- a/docs/details/internal.dox
+++ b/docs/details/internal.dox
@@ -2,7 +2,7 @@
 \addtogroup internal_func
 @{
 
-\defgroup internal_func_create createArray
+\defgroup internal_func_create createStridedArray
 
 Create an array with specified strides and offset.
 
diff --git a/include/af/internal.h b/include/af/internal.h
index 6ba42b3..5300292 100644
--- a/include/af/internal.h
+++ b/include/af/internal.h
@@ -31,10 +31,10 @@ namespace af
 
        \ingroup internal_func_create
     */
-    AFAPI array createArray(const void *data, const dim_t offset,
-                            const dim4 dims, const dim4 strides,
-                            const af::dtype ty,
-                            const af::source location);
+    AFAPI array createStridedArray(const void *data, const dim_t offset,
+                                   const dim4 dims, const dim4 strides,
+                                   const af::dtype ty,
+                                   const af::source location);
 #endif
 
 #if AF_API_VERSION >= 33
@@ -111,14 +111,14 @@ extern "C"
 
        \ingroup internal_func_create
     */
-    AFAPI af_err af_create_array_with_strides(af_array *arr,
-                                              const void *data,
-                                              const dim_t offset,
-                                              const unsigned ndims,
-                                              const dim_t *const dims,
-                                              const dim_t *const strides,
-                                              const af_dtype ty,
-                                              const af_source location);
+    AFAPI af_err af_create_strided_array(af_array *arr,
+                                         const void *data,
+                                         const dim_t offset,
+                                         const unsigned ndims,
+                                         const dim_t *const dims,
+                                         const dim_t *const strides,
+                                         const af_dtype ty,
+                                         const af_source location);
 #endif
 
 #if AF_API_VERSION >= 33
diff --git a/src/api/c/internal.cpp b/src/api/c/internal.cpp
index cad4a46..ac7a374 100644
--- a/src/api/c/internal.cpp
+++ b/src/api/c/internal.cpp
@@ -20,14 +20,14 @@
 
 using namespace detail;
 
-af_err af_create_array_with_strides(af_array *arr,
-                                    const void *data,
-                                    const dim_t offset,
-                                    const unsigned ndims,
-                                    const dim_t *const dims_,
-                                    const dim_t *const strides_,
-                                    const af_dtype ty,
-                                    const af_source location)
+af_err af_create_strided_array(af_array *arr,
+                               const void *data,
+                               const dim_t offset,
+                               const unsigned ndims,
+                               const dim_t *const dims_,
+                               const dim_t *const strides_,
+                               const af_dtype ty,
+                               const af_source location)
 {
     try {
 
diff --git a/src/api/cpp/internal.cpp b/src/api/cpp/internal.cpp
index f26f9f8..bdce6e1 100644
--- a/src/api/cpp/internal.cpp
+++ b/src/api/cpp/internal.cpp
@@ -13,15 +13,15 @@
 
 namespace af
 {
-    array createArray(const void *data, const dim_t offset,
-                      const dim4 dims, const dim4 strides,
-                      const af::dtype ty,
-                      const af::source location)
+    array createStridedArray(const void *data, const dim_t offset,
+                             const dim4 dims, const dim4 strides,
+                             const af::dtype ty,
+                             const af::source location)
     {
         af_array res;
-        AF_THROW(af_create_array_with_strides(&res, data, offset,
-                                              dims.ndims(), dims.get(), strides.get(),
-                                              ty, location));
+        AF_THROW(af_create_strided_array(&res, data, offset,
+                                         dims.ndims(), dims.get(), strides.get(),
+                                         ty, location));
         return array(res);
     }
 
diff --git a/src/api/unified/internal.cpp b/src/api/unified/internal.cpp
index 7c223e7..b9ac0ac 100644
--- a/src/api/unified/internal.cpp
+++ b/src/api/unified/internal.cpp
@@ -11,14 +11,14 @@
 #include "symbol_manager.hpp"
 
 
-af_err af_create_array_with_strides(af_array *arr,
-                                    const void *data,
-                                    const dim_t offset,
-                                    const unsigned ndims,
-                                    const dim_t *const dims_,
-                                    const dim_t *const strides_,
-                                    const af_dtype ty,
-                                    const af_source location)
+af_err af_create_strided_array(af_array *arr,
+                               const void *data,
+                               const dim_t offset,
+                               const unsigned ndims,
+                               const dim_t *const dims_,
+                               const dim_t *const strides_,
+                               const af_dtype ty,
+                               const af_source location)
 {
     return CALL(arr, data, offset, ndims, dims_, strides_, ty, location);
 }

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