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

SCM Repository

[diderot] View of /branches/ein16/test/teigen.diderot
ViewVC logotype

View of /branches/ein16/test/teigen.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3682 - (download) (annotate)
Thu Feb 18 20:13:18 2016 UTC (3 years, 4 months ago) by cchiw
File size: 755 byte(s)
creating stable branch that represents ein ir
/*! \file eigen.diderot
 *
 * \author Lamont Samuels
 */

/*
 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
 *
 * COPYRIGHT (c) 2015 The University of Chicago
 * All rights reserved.
 */

int gridSize = 1;

strand eigenStrand (int id) {

    output vec3 eVector = [0.0,0.0,0.0]; 
 //   output real eigen = 0.0;
  //  output real{3} eval2={2.0,3.0,4.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};
       //     eval2= eval;
	stabilize; 
    }
}

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

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