[arrayfire] 162/248: Add s16 and u16 types to plot3 (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 4dd618ca0d54b69bd0b96376963df39fa25a7d1b
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Fri Oct 30 10:41:54 2015 -0400

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

diff --git a/src/api/c/plot3.cpp b/src/api/c/plot3.cpp
index 91bd412..473bce0 100644
--- a/src/api/c/plot3.cpp
+++ b/src/api/c/plot3.cpp
@@ -91,10 +91,12 @@ af_err af_draw_plot3(const af_window wind, const af_array P, const af_cell* cons
         fg::Plot3* plot3 = NULL;
 
         switch(Ptype) {
-            case f32: plot3 = setup_plot3<float>(P); break;
-            case s32: plot3 = setup_plot3<int  >(P); break;
-            case u32: plot3 = setup_plot3<uint >(P); break;
-            case u8 : plot3 = setup_plot3<uchar>(P); break;
+            case f32: plot3 = setup_plot3<float >(P); break;
+            case s32: plot3 = setup_plot3<int   >(P); break;
+            case u32: plot3 = setup_plot3<uint  >(P); break;
+            case s16: plot3 = setup_plot3<short >(P); break;
+            case u16: plot3 = setup_plot3<ushort>(P); break;
+            case u8 : plot3 = setup_plot3<uchar >(P); break;
             default:  TYPE_ERROR(1, Ptype);
         }
 
diff --git a/src/backend/cuda/plot3.cu b/src/backend/cuda/plot3.cu
index 2e00ba9..378a6ec 100644
--- a/src/backend/cuda/plot3.cu
+++ b/src/backend/cuda/plot3.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/plot3.cpp b/src/backend/opencl/plot3.cpp
index 9351498..ce3355d 100644
--- a/src/backend/opencl/plot3.cpp
+++ b/src/backend/opencl/plot3.cpp
@@ -63,6 +63,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