Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
matrix::matrix_t Type Reference
Collaboration diagram for matrix::matrix_t:

Public Member Functions

procedure, pass(m) init (m, nrows, ncols)
 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) matrix_assign_matrix (m, w)
 Assignment \( m = w \).
 
procedure, pass(m) matrix_assign_scalar (m, s)
 Assignment \( m = s \).
 
procedure, pass(m) matrix_add_matrix (m, b)
 Matrix-matrix addition \( v = m + b \).
 
procedure, pass(m) matrix_add_scalar_left (m, c)
 Matrix-scalar addition \( v = m + c \).
 
procedure, pass(m) matrix_add_scalar_right (c, m)
 Scalar-matrix addition \( v = c + m \).
 
procedure, pass(m) matrix_sub_matrix (m, b)
 Matrix-matrix subtraction \( v = m - b \).
 
procedure, pass(m) matrix_sub_scalar_left (m, c)
 Matrix-scalar subtraction \( v = m - c \).
 
procedure, pass(m) matrix_sub_scalar_right (c, m)
 Scalar-matrix subtraction \( v = c - m \).
 
procedure, pass(m) matrix_cmult_left (m, c)
 Matrix-scalar multiplication \( v = m*c \).
 
procedure, pass(m) matrix_cmult_right (c, m)
 Scalar-matrix multiplication \( v = c*m \).
 
procedure, pass(m) inverse (m, bcknd)
 Inverse a matrix.
 
generic assignment (m, w)
 Assignment \( m = w \).
 
generic assignment (m, s)
 Assignment \( m = s \).
 
generic operator (m, b)
 Matrix-matrix addition \( v = m + b \).
 
generic operator (m, c)
 Matrix-scalar addition \( v = m + c \).
 
generic operator (c, m)
 Scalar-matrix addition \( v = c + m \).
 
generic operator (m, b)
 Matrix-matrix subtraction \( v = m - b \).
 
generic operator (m, c)
 Matrix-scalar subtraction \( v = m - c \).
 
generic operator (c, m)
 Scalar-matrix subtraction \( v = c - m \).
 
generic operator (m, c)
 Matrix-scalar multiplication \( v = m*c \).
 
generic operator (c, m)
 Scalar-matrix multiplication \( v = c*m \).
 

Public Attributes

real(kind=rp), dimension(:,:), allocatable x
 Matrix entries.
 
type(c_ptr) x_d = C_NULL_PTR
 Device pointer.
 
integer nrows = 0
 Number of matrix rows.
 
integer ncols = 0
 Number of matrix columns.
 
integer n = 0
 Total size nows*ncols.
 

Detailed Description

Definition at line 46 of file matrix.f90.

Member Function/Subroutine Documentation

◆ assignment() [1/2]

generic matrix::matrix_t::assignment ( class(matrix_t), intent(inout m,
real(kind=rp), intent(in s 
)

Definition at line 82 of file matrix.f90.

◆ assignment() [2/2]

generic matrix::matrix_t::assignment ( class(matrix_t), intent(inout m,
type(matrix_t), intent(in w 
)

Definition at line 82 of file matrix.f90.

Here is the call graph for this function:

◆ free()

procedure, pass(m) matrix::matrix_t::free ( class(matrix_t), intent(inout m)

Definition at line 56 of file matrix.f90.

◆ init()

procedure, pass(m) matrix::matrix_t::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 54 of file matrix.f90.

◆ inverse()

procedure, pass(m) matrix::matrix_t::inverse ( class(matrix_t), intent(inout m,
integer, optional  bcknd 
)

Definition at line 80 of file matrix.f90.

◆ matrix_add_matrix()

procedure, pass(m) matrix::matrix_t::matrix_add_matrix ( class(matrix_t), intent(in m,
class(matrix_t), intent(in b 
)

Definition at line 64 of file matrix.f90.

◆ matrix_add_scalar_left()

procedure, pass(m) matrix::matrix_t::matrix_add_scalar_left ( class(matrix_t), intent(in m,
real(kind=rp), intent(in c 
)

Definition at line 66 of file matrix.f90.

◆ matrix_add_scalar_right()

procedure, pass(m) matrix::matrix_t::matrix_add_scalar_right ( real(kind=rp), intent(in c,
class(matrix_t), intent(in m 
)

Definition at line 68 of file matrix.f90.

◆ matrix_assign_matrix()

procedure, pass(m) matrix::matrix_t::matrix_assign_matrix ( class(matrix_t), intent(inout m,
type(matrix_t), intent(in w 
)

Definition at line 60 of file matrix.f90.

◆ matrix_assign_scalar()

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

Definition at line 62 of file matrix.f90.

◆ matrix_cmult_left()

procedure, pass(m) matrix::matrix_t::matrix_cmult_left ( class(matrix_t), intent(in m,
real(kind=rp), intent(in c 
)

Definition at line 76 of file matrix.f90.

◆ matrix_cmult_right()

procedure, pass(m) matrix::matrix_t::matrix_cmult_right ( real(kind=rp), intent(in c,
class(matrix_t), intent(in m 
)

Definition at line 78 of file matrix.f90.

◆ matrix_sub_matrix()

procedure, pass(m) matrix::matrix_t::matrix_sub_matrix ( class(matrix_t), intent(in m,
class(matrix_t), intent(in b 
)

Definition at line 70 of file matrix.f90.

◆ matrix_sub_scalar_left()

procedure, pass(m) matrix::matrix_t::matrix_sub_scalar_left ( class(matrix_t), intent(in m,
real(kind=rp), intent(in c 
)

Definition at line 72 of file matrix.f90.

◆ matrix_sub_scalar_right()

procedure, pass(m) matrix::matrix_t::matrix_sub_scalar_right ( real(kind=rp), intent(in c,
class(matrix_t), intent(in m 
)

Definition at line 74 of file matrix.f90.

◆ operator() [1/8]

generic matrix::matrix_t::operator ( real(kind=rp), intent(in c,
class(matrix_t), intent(in m 
)

Definition at line 84 of file matrix.f90.

◆ operator() [2/8]

generic matrix::matrix_t::operator ( real(kind=rp), intent(in c,
class(matrix_t), intent(in m 
)

Definition at line 86 of file matrix.f90.

◆ operator() [3/8]

generic matrix::matrix_t::operator ( real(kind=rp), intent(in c,
class(matrix_t), intent(in m 
)

Definition at line 88 of file matrix.f90.

◆ operator() [4/8]

generic matrix::matrix_t::operator ( class(matrix_t), intent(in m,
class(matrix_t), intent(in b 
)

Definition at line 84 of file matrix.f90.

Here is the call graph for this function:

◆ operator() [5/8]

generic matrix::matrix_t::operator ( class(matrix_t), intent(in m,
class(matrix_t), intent(in b 
)

Definition at line 86 of file matrix.f90.

Here is the call graph for this function:

◆ operator() [6/8]

generic matrix::matrix_t::operator ( class(matrix_t), intent(in m,
real(kind=rp), intent(in c 
)

Definition at line 84 of file matrix.f90.

◆ operator() [7/8]

generic matrix::matrix_t::operator ( class(matrix_t), intent(in m,
real(kind=rp), intent(in c 
)

Definition at line 86 of file matrix.f90.

◆ operator() [8/8]

generic matrix::matrix_t::operator ( class(matrix_t), intent(in m,
real(kind=rp), intent(in c 
)

Definition at line 88 of file matrix.f90.

Here is the call graph for this function:

◆ size()

procedure, pass(m) matrix::matrix_t::size ( class(matrix_t), intent(inout m)

Definition at line 58 of file matrix.f90.

Member Data Documentation

◆ n

integer matrix::matrix_t::n = 0

Definition at line 51 of file matrix.f90.

◆ ncols

integer matrix::matrix_t::ncols = 0

Definition at line 50 of file matrix.f90.

◆ nrows

integer matrix::matrix_t::nrows = 0

Definition at line 49 of file matrix.f90.

◆ x

real(kind=rp), dimension(:,:), allocatable matrix::matrix_t::x

Definition at line 47 of file matrix.f90.

◆ x_d

type(c_ptr) matrix::matrix_t::x_d = C_NULL_PTR

Definition at line 48 of file matrix.f90.


The documentation for this type was generated from the following file: