Neko 0.9.99
A portable framework for high-order spectral element flow simulations
|
Implements a point.
Data Types | |
type | point_ptr |
Defines a pointer to a point type. More... | |
interface | point_t |
A point in \( \mathbb{R}^d \) with coordinates \( (x,y,z)\). More... | |
Functions/Subroutines | |
type(point_t) function | point_init (x, id) |
Initialize a point from an array x of \( (x,y,z) \) coordinates. | |
type(point_t) function | point_init_xyz (x, y, z, id) |
Initialize a point from \( (x,y,z) \) coordinates. | |
subroutine | point_assign (this, x) |
Assigns coordinates x to a point. | |
pure logical function | point_eq (p1, p2) |
Check if \( p_{1} = p_{2} \). | |
pure logical function | point_ne (p1, p2) |
Check if \( p_{1} \neq p_{2} \). | |
pure logical function | point_lt (p1, p2) |
Check if \( p_{1} < p_{2} \). | |
pure logical function | point_gt (p1, p2) |
Check if \( p_{1} > p_{2} \). | |
type(point_t) function | point_add (p1, p2) |
Returns the addition of 2 points \( p_{1} + p_{2} \). | |
type(point_t) function | point_subtract (p1, p2) |
Returns the subtraction of 2 points \( p_{1} - p_{2} \). | |
type(point_t) function | point_scalar_mult (p, a) |
Returns the multiplication of a point by a scalar \( a*p_{1} \). | |
pure real(kind=rp) function | point_euclid_dist (p1, p2) |
Returns the Euclidean distance between two points \( \mid p_1 - p_2 \mid \). | |
type(point_t) function | point_mat_mult (a, x) |
Computes matrix-vector product in \( \mathbb{R}^3 \): \( b = Ax \). | |