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

Defines a matrix.

Data Types

type  matrix_t
 

Functions/Subroutines

subroutine matrix_init (m, nrows, ncols)
 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.
 
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 239 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 102 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 179 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 209 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 225 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 153 of file matrix.f90.

◆ matrix_free()

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

Definition at line 123 of file matrix.f90.

Here is the call graph for this function:

◆ matrix_init()

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

Definition at line 86 of file matrix.f90.

Here is the call graph for this function:

◆ matrix_ncols()

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

Definition at line 172 of file matrix.f90.

◆ matrix_nrows()

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

Definition at line 165 of file matrix.f90.

◆ matrix_size()

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

Definition at line 142 of file matrix.f90.