finesse.cmatrix.CCSMatrix

Overview

class finesse.cmatrix.CCSMatrix(name)

Bases: object

Properties

CCSMatrix.indexes

CCSMatrix.name

CCSMatrix.num_equations

Returns the number of equations (rows) in this matrix.

CCSMatrix.num_rhs

Methods

CCSMatrix.__init__(*args, **kwargs)

CCSMatrix.add_diagonal_elements(self, ...[, ...])

Adds a submatrix to the matrix along its diagonal.

CCSMatrix.add_submatrix(self, ...[, ...])

Adds a submatrix to the matrix.

CCSMatrix.clear_rhs(self, ...)

Zero all elements in the rhs vector corresponding to rhs_index.

CCSMatrix.construct(self, ...)

Constructing the matrix involves taking the metadata submatrix positions throughout the matrix and allocating the memory and building the various CCS matrix structures.

CCSMatrix.factor(self)

CCSMatrix.get_matrix_elements(self)

Returns the sparse CCS format for the current state of this matrix.

CCSMatrix.get_sub_diagonal_view(self, ...)

CCSMatrix.get_sub_matrix_view(self, ...)

CCSMatrix.print_matrix(self)

Print a view of the non-zero elements in this matrix.

CCSMatrix.print_rhs(self, ...)

Print a view of the rhs vector corresponding to rhs_index.

CCSMatrix.refactor(self)

CCSMatrix.set_rhs(self, ...)

Sets the value of the entry at position index of the rhs_index`th right-hand-side vector to `value.

CCSMatrix.solve(self, int transpose=False, ...)

CCSMatrix.solve_extra_rhs(self, ...)