|
The Open FUSION Toolkit 1.0.0-beta6
Modeling tools for plasma and fusion research and engineering
|
Sum matrix class M = beta*J + alam*K.

Public Member Functions | |
| procedure | add_values (self, i_inds, j_inds, b, n, m, iblock, jblock, loc_cache) |
| Add values to a matrix. | |
| procedure(cmat_add_values), deferred | add_values (self, i_inds, j_inds, b, n, m, iblock, jblock, loc_cache) |
| Add values to the matrix. | |
| generic | apply (self, a, b) |
| Compute matrix-vector product. | |
| generic | apply (self, a, b) |
| Compute matrix-vector product. | |
| procedure | apply_complex (self, a, b) |
| Apply the matrix to a field. | |
| procedure | apply_complex (self, a, b) |
| Compute matrix vector product. | |
| procedure(cmat_apply_cvec), deferred | apply_complex (self, a, b) |
| procedure | apply_real (self, a, b) |
| Apply the matrix to a field. | |
| procedure | apply_real (self, a, b) |
| Compute matrix vector product (real) | |
| procedure | apply_real (self, a, b) |
| Compute matrix vector product. | |
| generic | applyt (self, a, b) |
| Compute matrix-vector product for matrix transpose. | |
| generic | applyt (self, a, b) |
| Compute matrix-vector product for matrix transpose. | |
| procedure | applyt_complex (self, a, b) |
| Apply the matrix to a field. | |
| procedure | applyt_complex (self, a, b) |
| Compute matrix vector product for matrix transpose. | |
| procedure(cmat_apply_cvec), deferred | applyt_complex (self, a, b) |
| procedure | applyt_real (self, a, b) |
| Apply the matrix to a field. | |
| procedure | applyt_real (self, a, b) |
| Compute matrix vector product for matrix transpose (real) | |
| procedure | applyt_real (self, a, b) |
| Apply matrix vector product for matrix transpose. | |
| procedure | assemble (self, diag) |
| Finish assembly of matrix and optionally extract diagonals. | |
| procedure | assemble (self, diag) |
| Complete matrix assembly. | |
| procedure(cmat_assemble), deferred | assemble (self, diag) |
| Complete matrix assembly. | |
| procedure | atomic_add_values (self, i_inds, j_inds, b, n, m, iblock, jblock, loc_cache) |
| Add values to a matrix. | |
| procedure(cmat_add_values), deferred | atomic_add_values (self, i_inds, j_inds, b, n, m, iblock, jblock, loc_cache) |
| Add values atomically to the matrix. | |
| procedure | delete (self) |
| Delete matrix. | |
| procedure | delete (self) |
| Delete matrix. | |
| procedure | set_values (self, i_inds, j_inds, b, n, m, iblock, jblock) |
| Set values of a matrix. | |
| procedure(cmat_set_values), deferred | set_values (self, i_inds, j_inds, b, n, m, iblock, jblock) |
| Set values of the matrix. | |
| procedure | zero (self) |
| Zero all entries in matrix. | |
| procedure(cmat_zero), deferred | zero (self) |
| Zero all elements. | |
| procedure | zero_rows (self, nrows, irows, iblock, keep_diag) |
| Zero all entries in the specified rows. | |
| procedure(cmat_zero_rows), deferred | zero_rows (self, nrows, irows, iblock, keep_diag) |
| Zero all elements in a given row. | |
Public Attributes | |
| complex(c8) | alam = (1.d0, 0.d0) |
| Lambda factor. | |
| complex(c8) | beta = (1.d0, 0.d0) |
| Beta factor. | |
| class(oft_cmatrix), pointer | cj => NULL() |
| J matrix. | |
| class(oft_cmatrix), pointer | ck => NULL() |
| K matrix. | |
| class(oft_cvector), pointer | d => NULL() |
| Diagonal entries for scaling. | |
| logical | force_local = .FALSE. |
| Do not stitch resulting vector (Native ONLY) | |
| type(oft_map), dimension(:), pointer | i_map => NULL() |
| Row block mapping. | |
| type(oft_map), dimension(:), pointer | j_map => NULL() |
| Column block mapping. | |
| integer(i4) | nc |
| Local number of columns. | |
| integer(i8) | ncg |
| Gobal number of columns. | |
| integer(i4) | ncslice = 0 |
| Number of owned columns. | |
| integer(i4) | ni = 0 |
| Number of row blocks. | |
| integer(i4) | nj = 0 |
| Number of column blocks. | |
| integer(i4) | nr |
| Local number of rows. | |
| integer(i8) | nrg |
| Gobal number of rows. | |
| integer(i4) | nrslice = 0 |
| Number of owned rows. | |
| class(oft_matrix), pointer | rj => NULL() |
| J matrix. | |
| class(oft_matrix), pointer | rk => NULL() |
| K matrix. | |
|
inherited |
Add values to a matrix.
| [in] | i_inds | Row indices of entries to add [n] |
| [in] | j_inds | Column indices of entries to add [m] |
| [in] | b | Values to add [n,m] |
| [in] | n | Number of rows in local matrix |
| [in] | m | Number of columns in local matrix |
| [in] | iblock | Row block (optional) |
| [in] | jblock | Column block (optional) |
| [in,out] | loc_cache | Cache of entry locations |
|
pure virtualinherited |
Add values to the matrix.
| [in] | i_inds | Row indices of entries to add [n] |
| [in] | j_inds | Column indices of entries to add [m] |
| [in] | b | Values to add [n,m] |
| [in] | n | Number of rows in local matrix |
| [in] | m | Number of columns in local matrix |
| [in] | iblock | Row block (optional) |
| [in] | jblock | Column block (optional) |
| [in,out] | loc_cache | Cache of entry locations |
|
inherited |
Compute matrix-vector product.
| [in,out] | a | Source vector |
| [in,out] | b | Result of matrix product |
|
inherited |
Compute matrix-vector product.
b = self * a
| [in,out] | self | Matrix object |
| [in,out] | a | Vector object |
| [in,out] | b | Result vector |
|
inherited |
Apply the matrix to a field.
b = self * a
| [in,out] | a | Source field |
| [in,out] | b | Result of matrix product |
| procedure apply_complex | ( | class(oft_sum_cmatrix), intent(inout) | self, |
| class(oft_cvector), intent(inout), target | a, | ||
| class(oft_cvector), intent(inout) | b | ||
| ) |
Compute matrix vector product.
b = (selfbeta*selfJ + selfalam*selfK) * a
| [in,out] | self | Matrix object |
| [in,out] | a | Vector object |
| [in,out] | b | Result vector |
|
pure virtualinherited |
| [in,out] | a | Source vector |
| [in,out] | b | Result of matrix product |
|
inherited |
Apply the matrix to a field.
b = self * a
| [in,out] | a | Source field |
| [in,out] | b | Result of matrix product |
| procedure apply_real | ( | class(oft_sum_cmatrix), intent(inout) | self, |
| class(oft_vector), intent(inout), target | a, | ||
| class(oft_cvector), intent(inout) | b | ||
| ) |
Compute matrix vector product (real)
b = (selfbeta*selfJ + selfalam*selfK) * a
| [in,out] | self | Matrix object |
| [in,out] | a | Vector object |
| [in,out] | b | Result vector |
|
inherited |
Compute matrix vector product.
b = self * a
| [in,out] | self | Matrix object |
| [in,out] | a | Vector object |
| [in,out] | b | Result vector |
|
inherited |
Compute matrix-vector product for matrix transpose.
| [in,out] | a | Source vector |
| [in,out] | b | Result of matrix product |
|
inherited |
Compute matrix-vector product for matrix transpose.
b = self^T * a
| [in,out] | self | Matrix object |
| [in,out] | a | Vector object |
| [in,out] | b | Result vector |
|
inherited |
Apply the matrix to a field.
b = self * a
| [in,out] | a | Source field |
| [in,out] | b | Result of matrix product |
| procedure applyt_complex | ( | class(oft_sum_cmatrix), intent(inout) | self, |
| class(oft_cvector), intent(inout), target | a, | ||
| class(oft_cvector), intent(inout) | b | ||
| ) |
Compute matrix vector product for matrix transpose.
b = selfbeta*selfJ^T + selfalam*selfK^T * a
| [in,out] | self | Matrix object |
| [in,out] | a | Vector object |
| [in,out] | b | Result vector |
|
pure virtualinherited |
| [in,out] | a | Source vector |
| [in,out] | b | Result of matrix product |
|
inherited |
Apply the matrix to a field.
b = self * a
| [in,out] | a | Source field |
| [in,out] | b | Result of matrix product |
| procedure applyt_real | ( | class(oft_sum_cmatrix), intent(inout) | self, |
| class(oft_vector), intent(inout), target | a, | ||
| class(oft_cvector), intent(inout) | b | ||
| ) |
Compute matrix vector product for matrix transpose (real)
b = selfbeta*selfJ^T + selfalam*selfK^T * a
| [in,out] | self | Matrix object |
| [in,out] | a | Vector object |
| [in,out] | b | Result vector |
|
inherited |
Apply matrix vector product for matrix transpose.
b = self^T * a
| [in,out] | self | Matrix object |
| [in,out] | a | Vector object |
| [in,out] | b | Result vector |
|
inherited |
Finish assembly of matrix and optionally extract diagonals.
| [in,out] | diag | Diagonal entries of matrix [nr] (optional) |
| procedure assemble | ( | class(oft_sum_cmatrix), intent(inout) | self, |
| class(oft_cvector), intent(inout), optional, target | diag | ||
| ) |
Complete matrix assembly.
| [in,out] | self | Matrix object |
| [in,out] | diag | Diagonal entries of matrix [nr] (optional) |
|
pure virtualinherited |
Complete matrix assembly.
| [in,out] | diag | Diagonal entries of matrix [nr] (optional) |
|
inherited |
Add values to a matrix.
| [in] | i_inds | Row indices of entries to add [n] |
| [in] | j_inds | Column indices of entries to add [m] |
| [in] | b | Values to add [n,m] |
| [in] | n | Number of rows in local matrix |
| [in] | m | Number of columns in local matrix |
| [in] | iblock | Row block (optional) |
| [in] | jblock | Column block (optional) |
| [in,out] | loc_cache | Cache of entry locations |
|
pure virtualinherited |
Add values atomically to the matrix.
| [in] | i_inds | Row indices of entries to add [n] |
| [in] | j_inds | Column indices of entries to add [m] |
| [in] | b | Values to add [n,m] |
| [in] | n | Number of rows in local matrix |
| [in] | m | Number of columns in local matrix |
| [in] | iblock | Row block (optional) |
| [in] | jblock | Column block (optional) |
| [in,out] | loc_cache | Cache of entry locations |
|
inherited |
Delete matrix.
|
inherited |
Delete matrix.
|
inherited |
Set values of a matrix.
| [in] | i_inds | Row indices of entries to set [n] |
| [in] | j_inds | Column indices of entries to set [m] |
| [in] | b | Values to set [n,m] |
| [in] | n | Number of rows in local matrix |
| [in] | m | Number of columns in local matrix |
| [in] | iblock | Row block (optional) |
| [in] | jblock | Column block (optional) |
|
pure virtualinherited |
Set values of the matrix.
| [in] | i_inds | Row indices of entries to set [n] |
| [in] | j_inds | Column indices of entries to set [m] |
| [in] | b | Values to set [n,m] |
| [in] | n | Number of rows in local matrix |
| [in] | m | Number of columns in local matrix |
| [in] | iblock | Row block (optional) |
| [in] | jblock | Column block (optional) |
|
inherited |
Zero all entries in matrix.
|
pure virtualinherited |
Zero all elements.
|
inherited |
Zero all entries in the specified rows.
| [in] | nrows | Number of rows to zero |
| [in] | irows | Indices of rows to zero [nrows] |
| [in] | iblock | Row block (optional) |
| [in] | keep_diag | Keep diagonal entries |
|
pure virtualinherited |
Zero all elements in a given row.
| [in] | nrows | Number of rows to zero |
| [in] | irows | Indices of rows to zero [nrows] |
| [in] | iblock | Row block (optional) |
| [in] | keep_diag | Keep diagonal entries |
| complex(c8) alam = (1.d0, 0.d0) |
Lambda factor.
| complex(c8) beta = (1.d0, 0.d0) |
Beta factor.
| class(oft_cmatrix), pointer cj => NULL() |
J matrix.
| class(oft_cmatrix), pointer ck => NULL() |
K matrix.
|
inherited |
Diagonal entries for scaling.
|
inherited |
Do not stitch resulting vector (Native ONLY)
|
inherited |
Row block mapping.
|
inherited |
Column block mapping.
|
inherited |
Local number of columns.
|
inherited |
Gobal number of columns.
|
inherited |
Number of owned columns.
|
inherited |
Number of row blocks.
|
inherited |
Number of column blocks.
|
inherited |
Local number of rows.
|
inherited |
Gobal number of rows.
|
inherited |
Number of owned rows.
| class(oft_matrix), pointer rj => NULL() |
J matrix.
| class(oft_matrix), pointer rk => NULL() |
K matrix.