source: orange/Orange/doc/reference/symmatrix.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 267 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

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.