LOOS 4.1.0
The Lightweight Object Oriented Structural analysis library/toolkit
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | List of all members
loos.pyloos.SymmMatrix.SymmMatrix Class Reference

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
 

Detailed Description

1D storage of a symmetric matrix (eg a contact matrix)
Useful as an intermediate to be sent to PCA, etc

Member Function Documentation

◆ toFlat()

loos.pyloos.SymmMatrix.SymmMatrix.toFlat ( self,
i,
j )
Given indices i,j to the symmetric matrix, generate the 1-D
index

◆ toSymm()

loos.pyloos.SymmMatrix.SymmMatrix.toSymm ( self,
index )
Given an index into the 1D representation, return the indices for the
symmetric matrix (0-based)

The documentation for this class was generated from the following file: