finesse.densematrix.DenseMatrix
¶
Overview
- class finesse.densematrix.DenseMatrix(name)[source]¶
Bases:
object
Examples
Create a matrix with memory views of different submatrices for giving to components:
> DM = DenseMatrix(“abc”) > > DM.declare_equations(5, 0, ‘a’) > DM.declare_equations(5, 1, ‘b’) > DM.declare_equations(5, 2, ‘c’) > DM.declare_equations(2, 3, ‘d’) > > v1 = DM.declare_submatrix_view(0, 1, ‘b’) > v2 = DM.declare_subdiagonal_view(0, 2, ‘b’) > v3 = DM.declare_submatrix_view(3, 1, ‘b’) > > DM.construct() > > v1[:] = 1 > v2[:] = 0.5 > v3[:] = 0.75
Properties
Methods
|
|
|
|
Constructing the matrix involves taking the metadata submatrix positions throughout the matrix and allocating the memory and building the various CCS matrix structures. |
|
|
Adds a submatrix to the matrix along its diagonal. |
|
|
|
|
|
Solve the matrix with options for transposing and conjugating. |