source: orange/Orange/testing/regression/tests_20/reference_symmatrix.py @ 9952:986e9cd806f4

Revision 9952:986e9cd806f4, 267 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

Tests moved and renamed from orange 20.

Line 
1import orange
2
3m = orange.SymMatrix(4)
4for i in range(4):
5    for j in range(i+1):
6        m[i, j] = (i+1)*(j+1)
7
8
9print m
10print
11
12m.matrixType = m.Upper
13print m
14print
15
16m.matrixType = m.UpperFilled
17print m
18print
19
20m.matrixType = m.Lower
21for row in m[:3]:
22    print row
Note: See TracBrowser for help on using the repository browser.