Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /trunk/test/teigen.diderot
ViewVC logotype

View of /trunk/test/teigen.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1989 - (download) (annotate)
Fri Aug 3 01:54:21 2012 UTC (6 years, 10 months ago) by lamonts
File size: 636 byte(s)
Removed old code that caused problems on AMD GPUs and fixed the type conversion problems that caused problems for Mandelbrot. the GPU backend calls stabalize properly now. 
/*! \file eigen.diderot
 *
 * \author Lamont Samuels
 */

/*
 * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
 * All rights reserved.
 */

int gridSize = 1;

strand eigenStrand (int id) {

    output vec3 eVector = [0.0,0.0,0.0]; 
  //  output real eigen = 0.0; 

    update {
    	tensor[3,3] simpleMatrix= [[1.0,7.0,3.0], 
	    	                   [7.0,4.0,-5.0],
		                   [3.0,-5.0,6.0]]; 

        real{3} eval = evals(simpleMatrix);
        vec3{3} eVectors = evecs(simpleMatrix);
	eVector = -eVectors{2}; 
	stabilize; 
    }
}

initially [ eigenStrand(id) |  id in 0..(gridSize-1)];

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0