|
| procedure, pass(m) | init (m, nrows, ncols, name) |
| | Initialise a matrix of size nrows*ncols.
|
| procedure, pass(m) | free (m) |
| | Deallocate a matrix.
|
| procedure, pass(m) | size (m) |
| | Returns the number of entries in the matrix.
|
| procedure, pass(m) | copy_from (m, memdir, sync) |
| | Copy between host and device.
|
| procedure, pass(m) | get_nrows (m) |
| | Returns the number of rows in the matrix.
|
| procedure, pass(m) | get_ncols (m) |
| | Returns the number of columns in the matrix.
|
| procedure, pass(m) | get_dims (m) |
| | Return dimensions of the matrix.
|
| procedure, pass(m) | matrix_assign_matrix (m, w) |
| | Assignment \( m = w \).
|
| procedure, pass(m) | matrix_assign_scalar (m, s) |
| | Assignment \( m = s \).
|
| procedure, pass(m) | inverse (m, bcknd) |
| | Inverse a matrix.
|
| procedure, pass(m) | inverse_on_host (m) |
| generic | assignment (m, w) |
| | Assignment \( m = w \).
|
| generic | assignment (m, s) |
| | Assignment \( m = s \).
|
|
| real(kind=rp), dimension(:,:), allocatable | x |
| | Matrix entries.
|
| character(len=neko_varname_len) | name = "" |
| | Name of the matrix.
|
| type(c_ptr) | x_d = C_NULL_PTR |
| | Device pointer.
|
|
| procedure, pass, private | alloc (m, nrows, ncols) |
| | Allocate a matrix of size nrows*ncols.
|
|
| integer, private | nrows = 0 |
| | Number of matrix rows.
|
| integer, private | ncols = 0 |
| | Number of matrix columns.
|
| integer, private | n = 0 |
| | Total size nows*ncols.
|
Definition at line 45 of file matrix.f90.
◆ alloc()
| procedure, pass, private matrix::matrix_t::alloc |
( |
class(matrix_t), intent(inout) | m, |
|
|
integer, intent(in) | nrows, |
|
|
integer, intent(in) | ncols ) |
|
private |
- Parameters
-
| nrows | Number of rows. |
| ncols | Number of columns. |
Definition at line 79 of file matrix.f90.
◆ assignment() [1/2]
| generic matrix::matrix_t::assignment |
( |
class(matrix_t), intent(inout) | m, |
|
|
real(kind=rp), intent(in) | s ) |
◆ assignment() [2/2]
| generic matrix::matrix_t::assignment |
( |
class(matrix_t), intent(inout) | m, |
|
|
type(matrix_t), intent(in) | w ) |
◆ copy_from()
| procedure, pass(m) matrix::matrix_t::copy_from |
( |
class(matrix_t), intent(inout) | m, |
|
|
integer, intent(in) | memdir, |
|
|
logical, intent(in) | sync ) |
- Parameters
-
| m | matrix to copy to/from device/host @memdir direction to copy (HOST_TO_DEVICE or DEVICE_TO_HOST) @sync whether the memcopy to be blocking or not |
Definition at line 60 of file matrix.f90.
◆ free()
| procedure, pass(m) matrix::matrix_t::free |
( |
class(matrix_t), intent(inout) | m | ) |
|
◆ get_dims()
| procedure, pass(m) matrix::matrix_t::get_dims |
( |
class(matrix_t), intent(in) | m | ) |
|
◆ get_ncols()
| procedure, pass(m) matrix::matrix_t::get_ncols |
( |
class(matrix_t), intent(in) | m | ) |
|
◆ get_nrows()
| procedure, pass(m) matrix::matrix_t::get_nrows |
( |
class(matrix_t), intent(in) | m | ) |
|
◆ init()
| procedure, pass(m) matrix::matrix_t::init |
( |
class(matrix_t), intent(inout) | m, |
|
|
integer, intent(in) | nrows, |
|
|
integer, intent(in) | ncols, |
|
|
character(len=*), intent(in), optional | name ) |
- Parameters
-
| nrows | Number of rows. |
| ncols | Number of columns. |
Definition at line 54 of file matrix.f90.
◆ inverse()
| procedure, pass(m) matrix::matrix_t::inverse |
( |
class(matrix_t), intent(inout) | m, |
|
|
integer, optional | bcknd ) |
◆ inverse_on_host()
| procedure, pass(m) matrix::matrix_t::inverse_on_host |
( |
class(matrix_t), intent(inout) | m | ) |
|
◆ matrix_assign_matrix()
| procedure, pass(m) matrix::matrix_t::matrix_assign_matrix |
( |
class(matrix_t), intent(inout) | m, |
|
|
type(matrix_t), intent(in) | w ) |
◆ matrix_assign_scalar()
| procedure, pass(m) matrix::matrix_t::matrix_assign_scalar |
( |
class(matrix_t), intent(inout) | m, |
|
|
real(kind=rp), intent(in) | s ) |
◆ size()
| procedure, pass(m) matrix::matrix_t::size |
( |
class(matrix_t), intent(in) | m | ) |
|
| integer, private matrix::matrix_t::n = 0 |
|
private |
◆ name
| character(len=neko_varname_len) matrix::matrix_t::name = "" |
◆ ncols
| integer, private matrix::matrix_t::ncols = 0 |
|
private |
◆ nrows
| integer, private matrix::matrix_t::nrows = 0 |
|
private |
| real(kind=rp), dimension(:,:), allocatable matrix::matrix_t::x |
◆ x_d
| type(c_ptr) matrix::matrix_t::x_d = C_NULL_PTR |
The documentation for this type was generated from the following file: