source: tol/tolsh/tests/matprod/check.tol @ 6d7779d

1941-docker-image-to-testdevel
Last change on this file since 6d7779d was 6d7779d, checked in by Jorge Pérez <josp.jorge@…>, 18 years ago

initial import

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 373 bytes
Line 
1/* -*- mode: c++ -*- */
2 
3Matrix parC = MatReadFile("parC.bbm");
4Matrix seqC = MatReadFile("seqC.bbm");
5Matrix diffC = parC - seqC;
6Real norm = MatFrobeniusNorm(diffC);
7WriteLn("|parC-seqC|="<<norm);
8Matrix errorData = Rand(1, 2, 0, 0);
9Real Do PutMatDat(errorData, 1, 1, Rows(diffC));
10Real Do PutMatDat(errorData, 1, 2, norm);
11Matrix MatAppendFile("norm.bbm", errorData);
Note: See TracBrowser for help on using the repository browser.