File: test_sparse1.m

package info (click to toggle)
freemat 4.2%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 141,800 kB
  • ctags: 14,082
  • sloc: ansic: 126,788; cpp: 62,046; python: 2,080; perl: 1,255; sh: 1,146; yacc: 1,019; lex: 239; makefile: 100
file content (18 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function x = test_sparse1
a = [0,0,2,0;0,0,1,1;1,0,0,0];
A = sparse(a);
b = float(a);
B = sparse(b);
c = double(a);
C = sparse(c);
d = complex(a + i*a);
D = sparse(d);
e = dcomplex(d);
E = sparse(e);
f = complex(a);
F = complex(A);
g = dcomplex(b);
G = dcomplex(B);
h = float(d);
H = float(D);
x = testeq(a,A) & testeq(b,B) & testeq(c,C) & testeq(d,D) & testeq(e,E) & testeq(f,F) & testeq(g,G) & testeq(h,H);