diff options
author | jofret | 2010-06-22 15:33:27 +0000 |
---|---|---|
committer | jofret | 2010-06-22 15:33:27 +0000 |
commit | 01000e47c249b1d528f53095b9e116d99f1daa18 (patch) | |
tree | 992c99ce83bd0b7b98b3b8c87f2bec43a260dc71 /tests/unit_tests/double/test_OpStar.sci | |
parent | 79a0de7c6623433170f4965f0a6f07ebfed27f16 (diff) | |
download | scilab2c-01000e47c249b1d528f53095b9e116d99f1daa18.tar.gz scilab2c-01000e47c249b1d528f53095b9e116d99f1daa18.tar.bz2 scilab2c-01000e47c249b1d528f53095b9e116d99f1daa18.zip |
Move test_double_* -> test_*
Diffstat (limited to 'tests/unit_tests/double/test_OpStar.sci')
-rw-r--r-- | tests/unit_tests/double/test_OpStar.sci | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/unit_tests/double/test_OpStar.sci b/tests/unit_tests/double/test_OpStar.sci new file mode 100644 index 00000000..06989ec8 --- /dev/null +++ b/tests/unit_tests/double/test_OpStar.sci @@ -0,0 +1,31 @@ +function test_OpStar() + d0 = %pi + d2 = [1 2 3 4 ; 5 6 7 8 ; 9 10 11 12 ; 13 14 15 16] + z0 = d0 + %i * d0 + z2 = d2 + %i * d2 + + disp(d0*d0) + disp(d0*z0) + disp(z0*d0) + disp(z0*z0) + + disp(d2*d0) + disp(d2*z0) + disp(z2*d0) + disp(z2*z0) + + disp(d0*d2) + disp(d0*z2) + disp(z0*d2) + disp(z0*z2) + + disp(d2*d2) + disp(d2*z2) + disp(z2*d2) + disp(z2*z2) + + disp([1 2 3]*[1 2 3]') //d2d2OpStard0 + disp([1 2 3]*(%i * [1 2 3])') //d2z2OpStarz0 + disp((%i * [1 2 3])*[1 2 3]') //z2d2OpStarz0 + disp((%i * [1 2 3])*(%i * [1 2 3])') //z2z2OpStarz0 +endfunction
\ No newline at end of file |