[arrayfire] 161/248: Add s16 and u16 types to plot (graphics)

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Nov 17 15:54:22 UTC 2015


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 2f209d45b7352d68e1052d28a9fa38e1b9d23317
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Fri Oct 30 10:41:35 2015 -0400

    Add s16 and u16 types to plot (graphics)
---
 src/api/c/plot.cpp          | 2 ++
 src/backend/cuda/plot.cu    | 2 ++
 src/backend/opencl/plot.cpp | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/src/api/c/plot.cpp b/src/api/c/plot.cpp
index 8ac44e7..b22e928 100644
--- a/src/api/c/plot.cpp
+++ b/src/api/c/plot.cpp
@@ -88,6 +88,8 @@ af_err af_draw_plot(const af_window wind, const af_array X, const af_array Y, co
             case f32: plot = setup_plot<float  >(X, Y); break;
             case s32: plot = setup_plot<int    >(X, Y); break;
             case u32: plot = setup_plot<uint   >(X, Y); break;
+            case s16: plot = setup_plot<short  >(X, Y); break;
+            case u16: plot = setup_plot<ushort >(X, Y); break;
             case u8 : plot = setup_plot<uchar  >(X, Y); break;
             default:  TYPE_ERROR(1, Xtype);
         }
diff --git a/src/backend/cuda/plot.cu b/src/backend/cuda/plot.cu
index 40a004e..20f8993 100644
--- a/src/backend/cuda/plot.cu
+++ b/src/backend/cuda/plot.cu
@@ -52,6 +52,8 @@ INSTANTIATE(float)
 INSTANTIATE(double)
 INSTANTIATE(int)
 INSTANTIATE(uint)
+INSTANTIATE(short)
+INSTANTIATE(ushort)
 INSTANTIATE(uchar)
 
 }
diff --git a/src/backend/opencl/plot.cpp b/src/backend/opencl/plot.cpp
index 5a5712b..4eb240f 100644
--- a/src/backend/opencl/plot.cpp
+++ b/src/backend/opencl/plot.cpp
@@ -66,6 +66,8 @@ INSTANTIATE(float)
 INSTANTIATE(double)
 INSTANTIATE(int)
 INSTANTIATE(uint)
+INSTANTIATE(short)
+INSTANTIATE(ushort)
 INSTANTIATE(uchar)
 
 }

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