[arrayfire] 229/408: Removed af_print_array_c. af::print now calls af_print_array_p
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:04 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 2a9e8559c0dc80a489e700f4993586dbb0e594f6
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Tue Aug 11 18:37:43 2015 -0400
Removed af_print_array_c. af::print now calls af_print_array_p
---
include/af/util.h | 10 ----------
src/api/c/print.cpp | 25 -------------------------
src/api/cpp/util.cpp | 2 +-
3 files changed, 1 insertion(+), 36 deletions(-)
diff --git a/include/af/util.h b/include/af/util.h
index 81dbd1a..ef8fbab 100644
--- a/include/af/util.h
+++ b/include/af/util.h
@@ -140,16 +140,6 @@ extern "C" {
/**
\param[in] exp is the expression or name of the array
\param[in] arr is the input array
-
- \returns error codes
-
- \ingroup print_func_print
- */
- AFAPI af_err af_print_array_c(const char *exp, const af_array arr);
-
- /**
- \param[in] exp is the expression or name of the array
- \param[in] arr is the input array
\param[in] precision precision for the display
\returns error codes
diff --git a/src/api/c/print.cpp b/src/api/c/print.cpp
index e91a4ed..ec2fc0a 100644
--- a/src/api/c/print.cpp
+++ b/src/api/c/print.cpp
@@ -109,31 +109,6 @@ af_err af_print_array(af_array arr)
return AF_SUCCESS;
}
-af_err af_print_array_c(const char *exp, const af_array arr)
-{
- try {
- ARG_ASSERT(0, exp != NULL);
- ArrayInfo info = getInfo(arr);
- af_dtype type = info.getType();
- switch(type)
- {
- case f32: print<float> (exp, arr, 4); break;
- case c32: print<cfloat> (exp, arr, 4); break;
- case f64: print<double> (exp, arr, 4); break;
- case c64: print<cdouble> (exp, arr, 4); break;
- case b8: print<char> (exp, arr, 4); break;
- case s32: print<int> (exp, arr, 4); break;
- case u32: print<unsigned>(exp, arr, 4); break;
- case u8: print<uchar> (exp, arr, 4); break;
- case s64: print<intl> (exp, arr, 4); break;
- case u64: print<uintl> (exp, arr, 4); break;
- default: TYPE_ERROR(1, type);
- }
- }
- CATCHALL;
- return AF_SUCCESS;
-}
-
af_err af_print_array_p(const char *exp, const af_array arr, const int precision)
{
try {
diff --git a/src/api/cpp/util.cpp b/src/api/cpp/util.cpp
index 4ce0bb5..6ff144e 100644
--- a/src/api/cpp/util.cpp
+++ b/src/api/cpp/util.cpp
@@ -18,7 +18,7 @@ namespace af
{
void print(const char *exp, const array &arr)
{
- AF_THROW(af_print_array_c(exp, arr.get()));
+ AF_THROW(af_print_array_p(exp, arr.get(), 4));
return;
}
--
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