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 1980 - (download) (annotate)
Thu Jul 26 18:42:56 2012 UTC (8 years, 11 months ago) by lamonts
File size: 589 byte(s)
Adding simple eigen tester to test on AMD machine
/*! \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]; 
    tensor[3,3] simpleMatrix= [ [3.0,2.0,4.0], 
		                [5.0,6.0,7.0],
		                [8.0,9.0,1.0]]; 

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

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

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