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

SCM Repository

[diderot] View of /branches/vis12/bugs/open/bug045.diderot
ViewVC logotype

View of /branches/vis12/bugs/open/bug045.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3321 - (download) (annotate)
Sun Oct 18 10:35:17 2015 UTC (5 years, 1 month ago) by glk
File size: 416 byte(s)
need det() from charisee's branch
/*
need the determinant det() function in Charisee's branch
this program should output:

det(M2) = -2.000000
det(M3) = -3.000000

*/
strand foo (int ii) {
  output real noop = 0.0;

  update {
    tensor[2,2] M2 = [[1,2],[3,4]];
    print("det(M2) = ", det(M2), "\n");
    tensor[3,3] M3 = [[1,2,3],[4,5,6],[7,8,10]];
    print("det(M3) = ", det(M3), "\n");
    stabilize;
  }
}

initially [ foo(ii) | ii in 0..0 ];

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