source: orange/docs/reference/rst/code/symmatrix.py @ 9372:aef193695ea9

Revision 9372:aef193695ea9, 277 bytes checked in by mitar, 2 years ago (diff)

Moved documentation to the separate directory.

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