Neko  0.9.99
A portable framework for high-order spectral element flow simulations
vector::vector_t Type Reference
Collaboration diagram for vector::vector_t:

Public Member Functions

procedure, pass(v) init => vector_init
 Initialise a vector of size n. More...
 
procedure, pass(v) free => vector_free
 Deallocate a vector. More...
 
procedure, pass(v) size => vector_size
 Returns the number of entries in the vector. More...
 
procedure, pass(v) vector_assign_vector
 Assignment \( v = w \). More...
 
procedure, pass(v) vector_assign_scalar
 Assignment \( v = s \). More...
 
procedure, pass(a) vector_add_vector
 Vector-vector addition \( v = a + b \). More...
 
procedure, pass(a) vector_add_scalar_left
 Vector-scalar addition \( v = a + c \). More...
 
procedure, pass(a) vector_add_scalar_right
 Scalar-vector addition \( v = c + a \). More...
 
procedure, pass(a) vector_sub_vector
 Vector-vector subtraction \( v = a - b \). More...
 
procedure, pass(a) vector_sub_scalar_left
 Vector-scalar subtraction \( v = a - c \). More...
 
procedure, pass(a) vector_sub_scalar_right
 Scalar-vector subtraction \( v = c - a \). More...
 
procedure, pass(a) vector_cmult_left
 Vector-scalar multiplication \( v = a*c \). More...
 
procedure, pass(a) vector_cmult_right
 Scalar-vector multiplication \( v = c*a \). More...
 
generic assignment => vector_assign_vector, vector_assign_scalar
 
generic operator => vector_add_vector, vector_add_scalar_left, vector_add_scalar_right
 
generic operator => vector_sub_vector, vector_sub_scalar_left, vector_sub_scalar_right
 
generic operator => vector_cmult_left, vector_cmult_right
 

Public Attributes

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

Detailed Description

Definition at line 46 of file vector.f90.

Member Function/Subroutine Documentation

◆ assignment()

generic vector::vector_t::assignment

Definition at line 81 of file vector.f90.

Here is the call graph for this function:

◆ free()

procedure, pass(v) vector::vector_t::free

Definition at line 57 of file vector.f90.

◆ init()

procedure, pass(v) vector::vector_t::init

Definition at line 55 of file vector.f90.

◆ operator() [1/3]

generic vector::vector_t::operator

Definition at line 83 of file vector.f90.

Here is the call graph for this function:

◆ operator() [2/3]

generic vector::vector_t::operator

Definition at line 87 of file vector.f90.

Here is the call graph for this function:

◆ operator() [3/3]

generic vector::vector_t::operator

Definition at line 85 of file vector.f90.

Here is the call graph for this function:

◆ size()

procedure, pass(v) vector::vector_t::size

Definition at line 59 of file vector.f90.

◆ vector_add_scalar_left()

procedure, pass(a) vector::vector_t::vector_add_scalar_left

Definition at line 67 of file vector.f90.

◆ vector_add_scalar_right()

procedure, pass(a) vector::vector_t::vector_add_scalar_right

Definition at line 69 of file vector.f90.

◆ vector_add_vector()

procedure, pass(a) vector::vector_t::vector_add_vector

Definition at line 65 of file vector.f90.

◆ vector_assign_scalar()

procedure, pass(v) vector::vector_t::vector_assign_scalar

Definition at line 63 of file vector.f90.

◆ vector_assign_vector()

procedure, pass(v) vector::vector_t::vector_assign_vector

Definition at line 61 of file vector.f90.

◆ vector_cmult_left()

procedure, pass(a) vector::vector_t::vector_cmult_left

Definition at line 77 of file vector.f90.

◆ vector_cmult_right()

procedure, pass(a) vector::vector_t::vector_cmult_right

Definition at line 79 of file vector.f90.

◆ vector_sub_scalar_left()

procedure, pass(a) vector::vector_t::vector_sub_scalar_left

Definition at line 73 of file vector.f90.

◆ vector_sub_scalar_right()

procedure, pass(a) vector::vector_t::vector_sub_scalar_right

Definition at line 75 of file vector.f90.

◆ vector_sub_vector()

procedure, pass(a) vector::vector_t::vector_sub_vector

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: