[arrayfire] 155/248: Change loop in surface example

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Nov 17 15:54:18 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 662efff37ded02ae96f7ca25b462c4e8145b9ed7
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Thu Oct 29 17:19:25 2015 -0400

    Change loop in surface example
---
 examples/graphics/surface.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/graphics/surface.cpp b/examples/graphics/surface.cpp
index 3517617..92d5185 100644
--- a/examples/graphics/surface.cpp
+++ b/examples/graphics/surface.cpp
@@ -28,7 +28,7 @@ int main(int argc, char *argv[])
         array Z = randn(X.dims(0), Y.dims(0));
 
         static float t=0;
-        for (double val=-af::Pi; !myWindow.close(); ) {
+        while(!myWindow.close()) {
             t+=0.07;
             //Z = sin(tile(X,1, Y.dims(0))*t + t) + cos(transpose(tile(Y, 1, X.dims(0)))*t + t);
             array x = tile(X,1, Y.dims(0));

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