Neko 1.99.9
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
matrix Module Reference

Defines a matrix.

Data Types

type  matrix_ptr_t
 
type  matrix_t
 

Functions/Subroutines

subroutine matrix_init (m, nrows, ncols, name)
 Initialise a matrix of size nrows*ncols.
 
subroutine matrix_allocate (m, nrows, ncols)
 Allocate a matrix of size nrows*ncols.
 
subroutine matrix_free (m)
 Deallocate a matrix.
 
pure integer function matrix_size (m)
 Returns the number of entries in the matrix.
 
subroutine matrix_copy_from (m, memdir, sync)
 Easy way to copy between host and device.
 
pure integer function matrix_nrows (m)
 Returns the number of rows in the matrix.
 
pure integer function matrix_ncols (m)
 Returns the number of columns in the matrix.
 
pure integer function, dimension(2) matrix_dims (m)
 Returns the dimensions of the matrix.
 
subroutine matrix_assign_matrix (m, w)
 Assignment \( m = w \).
 
subroutine matrix_assign_scalar (m, s)
 Assignment \( m = s \).
 
subroutine matrix_bcknd_inverse (m, bcknd)
 
subroutine cpu_matrix_inverse (m)
 

Function/Subroutine Documentation

◆ cpu_matrix_inverse()

subroutine matrix::cpu_matrix_inverse ( class(matrix_t), intent(inout)  m)
private

Definition at line 260 of file matrix.f90.

Here is the caller graph for this function:

◆ matrix_allocate()

subroutine matrix::matrix_allocate ( class(matrix_t), intent(inout)  m,
integer, intent(in)  nrows,
integer, intent(in)  ncols 
)
private
Parameters
nrowsNumber of rows.
ncolsNumber of columns.

Definition at line 115 of file matrix.f90.

Here is the call graph for this function:

◆ matrix_assign_matrix()

subroutine matrix::matrix_assign_matrix ( class(matrix_t), intent(inout)  m,
type(matrix_t), intent(in)  w 
)
private

Definition at line 198 of file matrix.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ matrix_assign_scalar()

subroutine matrix::matrix_assign_scalar ( class(matrix_t), intent(inout)  m,
real(kind=rp), intent(in)  s 
)
private

Definition at line 230 of file matrix.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ matrix_bcknd_inverse()

subroutine matrix::matrix_bcknd_inverse ( class(matrix_t), intent(inout)  m,
integer, optional  bcknd 
)
private

Definition at line 246 of file matrix.f90.

Here is the call graph for this function:

◆ matrix_copy_from()

subroutine matrix::matrix_copy_from ( class(matrix_t), intent(inout)  m,
integer, intent(in)  memdir,
logical, intent(in)  sync 
)
private
Parameters
mmatrix 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 165 of file matrix.f90.

◆ matrix_dims()

pure integer function, dimension(2) matrix::matrix_dims ( class(matrix_t), intent(in)  m)
private

Definition at line 191 of file matrix.f90.

◆ matrix_free()

subroutine matrix::matrix_free ( class(matrix_t), intent(inout)  m)
private

Definition at line 136 of file matrix.f90.

◆ matrix_init()

subroutine matrix::matrix_init ( class(matrix_t), intent(inout)  m,
integer, intent(in)  nrows,
integer, intent(in)  ncols,
character(len=*), intent(in), optional  name 
)
Parameters
nrowsNumber of rows.
ncolsNumber of columns.

Definition at line 91 of file matrix.f90.

◆ matrix_ncols()

pure integer function matrix::matrix_ncols ( class(matrix_t), intent(in)  m)
private

Definition at line 184 of file matrix.f90.

◆ matrix_nrows()

pure integer function matrix::matrix_nrows ( class(matrix_t), intent(in)  m)
private

Definition at line 177 of file matrix.f90.

◆ matrix_size()

pure integer function matrix::matrix_size ( class(matrix_t), intent(in)  m)
private

Definition at line 154 of file matrix.f90.