LOOS 4.1.0
The Lightweight Object Oriented Structural analysis library/toolkit
|
Public Member Functions | |
__init__ (self, dimension, doStorage=False) | |
toFlat (self, i, j) | |
toSymm (self, index) | |
set (self, i, j, val) | |
incr (self, i, j, val) | |
get (self, i, j) | |
Public Attributes | |
dimension | |
doStorage | |
Protected Attributes | |
_array | |
1D storage of a symmetric matrix (eg a contact matrix) Useful as an intermediate to be sent to PCA, etc
loos.pyloos.SymmMatrix.SymmMatrix.toFlat | ( | self, | |
i, | |||
j ) |
Given indices i,j to the symmetric matrix, generate the 1-D index
loos.pyloos.SymmMatrix.SymmMatrix.toSymm | ( | self, | |
index ) |
Given an index into the 1D representation, return the indices for the symmetric matrix (0-based)