source: orange/docs/reference/rst/code/symmatrix.py @ 9891:66ee6522a40f

Revision 9891:66ee6522a40f, 272 bytes checked in by gregorr, 2 years ago (diff)

SymMatrix documentation (data -> misc).

Line 
1import Orange
2
3m = Orange.misc.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.