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

SCM Repository

[diderot] View of /branches/charisee/test/E-tRewrites.diderot
ViewVC logotype

View of /branches/charisee/test/E-tRewrites.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2517 - (download) (annotate)
Thu Dec 12 20:35:28 2013 UTC (6 years, 10 months ago) by cchiw
File size: 936 byte(s)
regular check-in
// t1-test translate

vec3 t0 = [0.0, 0.0, 5.0];
vec3 t1 = [0.0, 1.0, 0.0];
vec3 t2 = [1.0, 0.0, 0.0];
vec3 t3 = [1.0, 6.0, 9.0];
vec4 t4 = [1.0, 0.0, 0.0,7.8];

tensor [6] a=[1.0, 6.0, 9.0,7.7,1.1,4.0];

tensor[3,4] h = [[2.0,0.0,0.0,3.0],   // analytic hessian
                [0.0,2.0,0.0,1.0],
                [0.0,0.0,2.0,8.9]];

tensor[4,4] M = [[2.0,0.0,0.0,3.0],[0.0,2.0,0.0,1.0],
                [0.0,0.0,2.0,8.9],[0.0,0.0,2.0,8.9]];




tensor [6] b=a;

//Trace of the outer Product

//Should all work with new normalize Dec 1st
tensor [3,3] O=t0⊗t1;
real traceOuter = trace(O);
real s=traceOuter+9;


vec3 cross1=t0 × t1;
vec3 cross2=t1 × t2;
vec3 cross3=t2 × t3;

vec3 s10=cross1 × t2;  
vec3 s11= t0 × cross2;
//vec3 s12=cross1× cross3;
//real s13=cross1• cross3;

vec3 test=s10+s11;


//real t= t0 • t1;
//real t5=t;
strand tensorTest (int row)
{
    update
    {  }
}

initially [ tensorTest(r) | r in 0..1];

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