/usr/share/doc/libnewmat10-dev/examples/example.txt is in libnewmat10-dev 1.10.4-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | Demonstration of Matrix package
Print a real number (may help lost memory test): 3.14159
Test 1 - traditional, bad
Estimates and their standard errors
1.39166 0.53188
1.98310 0.20932
0.95221 0.27731
Observations, fitted value, residual value, hat value
2.400 1.700 8.300 7.770 0.530 0.280
1.800 0.900 5.500 5.818 -0.318 0.190
2.400 1.600 8.000 7.675 0.325 0.229
3.000 1.900 8.500 9.150 -0.650 0.446
2.000 0.500 5.700 5.834 -0.134 0.271
1.200 0.600 4.400 4.343 0.057 0.480
2.000 1.100 6.300 6.405 -0.105 0.143
2.700 1.000 7.900 7.698 0.202 0.153
3.600 0.500 9.100 9.007 0.093 0.808
Test 2 - traditional, OK
Estimates and their standard errors
1.39166 0.53188
1.98310 0.20932
0.95221 0.27731
Observations, fitted value, residual value, hat value
2.400 1.700 8.300 7.770 0.530 0.280
1.800 0.900 5.500 5.818 -0.318 0.190
2.400 1.600 8.000 7.675 0.325 0.229
3.000 1.900 8.500 9.150 -0.650 0.446
2.000 0.500 5.700 5.834 -0.134 0.271
1.200 0.600 4.400 4.343 0.057 0.480
2.000 1.100 6.300 6.405 -0.105 0.143
2.700 1.000 7.900 7.698 0.202 0.153
3.600 0.500 9.100 9.007 0.093 0.808
Test 3 - Cholesky
Estimates and their standard errors
1.39166 0.53188
1.98310 0.20932
0.95221 0.27731
Observations, fitted value, residual value, hat value
2.400 1.700 8.300 7.770 0.530 0.280
1.800 0.900 5.500 5.818 -0.318 0.190
2.400 1.600 8.000 7.675 0.325 0.229
3.000 1.900 8.500 9.150 -0.650 0.446
2.000 0.500 5.700 5.834 -0.134 0.271
1.200 0.600 4.400 4.343 0.057 0.480
2.000 1.100 6.300 6.405 -0.105 0.143
2.700 1.000 7.900 7.698 0.202 0.153
3.600 0.500 9.100 9.007 0.093 0.808
Test 4 - QR triangularisation
Estimates and their standard errors
1.39166 0.53188
1.98310 0.20932
0.95221 0.27731
Observations, fitted value, residual value, hat value
2.400 1.700 8.300 7.770 0.530 0.280
1.800 0.900 5.500 5.818 -0.318 0.190
2.400 1.600 8.000 7.675 0.325 0.229
3.000 1.900 8.500 9.150 -0.650 0.446
2.000 0.500 5.700 5.834 -0.134 0.271
1.200 0.600 4.400 4.343 0.057 0.480
2.000 1.100 6.300 6.405 -0.105 0.143
2.700 1.000 7.900 7.698 0.202 0.153
3.600 0.500 9.100 9.007 0.093 0.808
Test 5 - singular value
Estimates and their standard errors
1.39166 0.53188
1.98310 0.20932
0.95221 0.27731
Observations, fitted value, residual value, hat value
2.400 1.700 8.300 7.770 0.530 0.280
1.800 0.900 5.500 5.818 -0.318 0.190
2.400 1.600 8.000 7.675 0.325 0.229
3.000 1.900 8.500 9.150 -0.650 0.446
2.000 0.500 5.700 5.834 -0.134 0.271
1.200 0.600 4.400 4.343 0.057 0.480
2.000 1.100 6.300 6.405 -0.105 0.143
2.700 1.000 7.900 7.698 0.202 0.153
3.600 0.500 9.100 9.007 0.093 0.808
The following test does not work with all compilers - see documentation
Checking for lost memory: 8206652 8206652 - ok
|