- Timestamp:
- Oct 9, 2014, 3:29:19 PM (12 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- e019cec
- Parents:
- b6035f3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tol_tests/tol/LinearAlgebra/PolMatrix/test_0002/check.tol
rb6035f3 re1969fb 3 3 #Require MPM; 4 4 5 Real PutRandomSeed(23453); 6 5 7 Real dim = 2; 6 8 Real deg = 2; 7 Real T = 100 ;9 Real T = 1000; 8 10 9 11 Matrix x = VariableChange::@StableMatrixPolyn:: … … 23 25 Real inequality_constraint_ = -Log(StationaryValue(determinant)); 24 26 25 Matrix X = Rand(T,dim,-1,1); 27 Matrix X0 = Rand(deg,dim,-1,1); 28 Matrix X = Rand(T, dim,-1,1); 26 29 27 Matrix Y = P:X; 30 Matrix Y = P:(X0<<X); 31 32 Matrix Y_ = Group("ConcatColumns",For(1, dim, Matrix(Real i) 33 { 34 SetSum(For(1, dim, Matrix(Real j) 35 { 36 DifEq(PHI[i][j]/1,SubCol(X,[[j]]),SubCol(X0,[[j]])) 37 })) 38 })); 39 40 Matrix Y_t = Group("ConcatColumns",For(1, dim, Matrix(Real i) 41 { 42 SetSum(For(1, dim, Matrix(Real j) 43 { 44 DifEq(PHI[j][i]/1,SubCol(X,[[j]]),SubCol(X0,[[j]])) 45 })) 46 })); 28 47 29 48 … … 33 52 Real eigen.module.max = MatMax(eigen.module); 34 53 Real eigen.module.max.inv = 1/eigen.module.max; 54 35 55 36 56
Note: See TracChangeset
for help on using the changeset viewer.
