Loading [MathJax]/extensions/tex2jax.js
Neko 0.9.99
A portable framework for high-order spectral element flow simulations
All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros Pages
vector::vector_t Type Reference
Collaboration diagram for vector::vector_t:

Public Member Functions

procedure, pass(v) init (v, n)
 Initialise a vector of size n.
 
procedure, pass(v) free (v)
 Deallocate a vector.
 
procedure, pass(v) size (v)
 Returns the number of entries in the vector.
 
procedure, pass(v) vector_assign_vector (v, w)
 Assignment \( v = w \).
 
procedure, pass(v) vector_assign_scalar (v, s)
 Assignment \( v = s \).
 
procedure, pass(avector_add_vector (a, b)
 Vector-vector addition \( v = a + b \).
 
procedure, pass(avector_add_scalar_left (a, c)
 Vector-scalar addition \( v = a + c \).
 
procedure, pass(avector_add_scalar_right (c, a)
 Scalar-vector addition \( v = c + a \).
 
procedure, pass(avector_sub_vector (a, b)
 Vector-vector subtraction \( v = a - b \).
 
procedure, pass(avector_sub_scalar_left (a, c)
 Vector-scalar subtraction \( v = a - c \).
 
procedure, pass(avector_sub_scalar_right (c, a)
 Scalar-vector subtraction \( v = c - a \).
 
procedure, pass(avector_cmult_left (a, c)
 Vector-scalar multiplication \( v = a*c \).
 
procedure, pass(avector_cmult_right (c, a)
 Scalar-vector multiplication \( v = c*a \).
 
generic assignment (v, w)
 Assignment \( v = w \).
 
generic assignment (v, s)
 Assignment \( v = s \).
 
generic operator (a, b)
 Vector-vector addition \( v = a + b \).
 
generic operator (a, c)
 Vector-scalar addition \( v = a + c \).
 
generic operator (c, a)
 Scalar-vector addition \( v = c + a \).
 
generic operator (a, b)
 Vector-vector subtraction \( v = a - b \).
 
generic operator (a, c)
 Vector-scalar subtraction \( v = a - c \).
 
generic operator (c, a)
 Scalar-vector subtraction \( v = c - a \).
 
generic operator (a, c)
 Vector-scalar multiplication \( v = a*c \).
 
generic operator (c, a)
 Scalar-vector multiplication \( v = c*a \).
 

Public Attributes

real(kind=rp), dimension(:), allocatable x
 Vector entries.
 
type(c_ptr) x_d = C_NULL_PTR
 Device pointer.
 
integer n = 0
 Size of vector.
 

Detailed Description

Definition at line 46 of file vector.f90.

Member Function/Subroutine Documentation

◆ assignment() [1/2]

generic vector::vector_t::assignment ( class(vector_t), intent(inout v,
real(kind=rp), intent(in s 
)

Definition at line 81 of file vector.f90.

◆ assignment() [2/2]

generic vector::vector_t::assignment ( class(vector_t), intent(inout v,
type(vector_t), intent(in w 
)

Definition at line 81 of file vector.f90.

Here is the call graph for this function:

◆ free()

procedure, pass(v) vector::vector_t::free ( class(vector_t), intent(inout v)

Definition at line 57 of file vector.f90.

◆ init()

procedure, pass(v) vector::vector_t::init ( class(vector_t), intent(inout v,
integer, intent(in n 
)

Definition at line 55 of file vector.f90.

◆ operator() [1/8]

generic vector::vector_t::operator ( class(vector_t), intent(in a,
class(vector_t), intent(in b 
)

Definition at line 83 of file vector.f90.

Here is the call graph for this function:

◆ operator() [2/8]

generic vector::vector_t::operator ( class(vector_t), intent(in a,
class(vector_t), intent(in b 
)

Definition at line 85 of file vector.f90.

Here is the call graph for this function:

◆ operator() [3/8]

generic vector::vector_t::operator ( class(vector_t), intent(in a,
real(kind=rp), intent(in c 
)

Definition at line 83 of file vector.f90.

◆ operator() [4/8]

generic vector::vector_t::operator ( class(vector_t), intent(in a,
real(kind=rp), intent(in c 
)

Definition at line 85 of file vector.f90.

◆ operator() [5/8]

generic vector::vector_t::operator ( class(vector_t), intent(in a,
real(kind=rp), intent(in c 
)

Definition at line 87 of file vector.f90.

Here is the call graph for this function:

◆ operator() [6/8]

generic vector::vector_t::operator ( real(kind=rp), intent(in c,
class(vector_t), intent(in a 
)

Definition at line 83 of file vector.f90.

◆ operator() [7/8]

generic vector::vector_t::operator ( real(kind=rp), intent(in c,
class(vector_t), intent(in a 
)

Definition at line 85 of file vector.f90.

◆ operator() [8/8]

generic vector::vector_t::operator ( real(kind=rp), intent(in c,
class(vector_t), intent(in a 
)

Definition at line 87 of file vector.f90.

◆ size()

procedure, pass(v) vector::vector_t::size ( class(vector_t), intent(in v)

Definition at line 59 of file vector.f90.

◆ vector_add_scalar_left()

procedure, pass(a) vector::vector_t::vector_add_scalar_left ( class(vector_t), intent(in a,
real(kind=rp), intent(in c 
)

Definition at line 67 of file vector.f90.

◆ vector_add_scalar_right()

procedure, pass(a) vector::vector_t::vector_add_scalar_right ( real(kind=rp), intent(in c,
class(vector_t), intent(in a 
)

Definition at line 69 of file vector.f90.

◆ vector_add_vector()

procedure, pass(a) vector::vector_t::vector_add_vector ( class(vector_t), intent(in a,
class(vector_t), intent(in b 
)

Definition at line 65 of file vector.f90.

◆ vector_assign_scalar()

procedure, pass(v) vector::vector_t::vector_assign_scalar ( class(vector_t), intent(inout v,
real(kind=rp), intent(in s 
)

Definition at line 63 of file vector.f90.

◆ vector_assign_vector()

procedure, pass(v) vector::vector_t::vector_assign_vector ( class(vector_t), intent(inout v,
type(vector_t), intent(in w 
)

Definition at line 61 of file vector.f90.

◆ vector_cmult_left()

procedure, pass(a) vector::vector_t::vector_cmult_left ( class(vector_t), intent(in a,
real(kind=rp), intent(in c 
)

Definition at line 77 of file vector.f90.

◆ vector_cmult_right()

procedure, pass(a) vector::vector_t::vector_cmult_right ( real(kind=rp), intent(in c,
class(vector_t), intent(in a 
)

Definition at line 79 of file vector.f90.

◆ vector_sub_scalar_left()

procedure, pass(a) vector::vector_t::vector_sub_scalar_left ( class(vector_t), intent(in a,
real(kind=rp), intent(in c 
)

Definition at line 73 of file vector.f90.

◆ vector_sub_scalar_right()

procedure, pass(a) vector::vector_t::vector_sub_scalar_right ( real(kind=rp), intent(in c,
class(vector_t), intent(in a 
)

Definition at line 75 of file vector.f90.

◆ vector_sub_vector()

procedure, pass(a) vector::vector_t::vector_sub_vector ( class(vector_t), intent(in a,
class(vector_t), intent(in b 
)

Definition at line 71 of file vector.f90.

Member Data Documentation

◆ n

integer vector::vector_t::n = 0

Definition at line 52 of file vector.f90.

◆ x

real(kind=rp), dimension(:), allocatable vector::vector_t::x

Definition at line 48 of file vector.f90.

◆ x_d

type(c_ptr) vector::vector_t::x_d = C_NULL_PTR

Definition at line 50 of file vector.f90.


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