0.6.0
Loading...
Searching...
No Matches
mod_math_linalg Module Reference

Linear algebra functions. More...

Functions/Subroutines

double precision function compute_euclidian_distance (point_a, point_b)
 Returns the Euclidian distance between two points.
 
double precision function, dimension(size(vector)) compute_normalized (vector)
 Returns the normalized vector.
 
double precision function, dimension(size(vector)) compute_orthogonal (vector)
 Returns an orthogonal vector.
 
double precision function compute_scalar_product (vector_a, vector_b)
 Returns the scalar product of two vectors.
 
double precision function, dimension(3) compute_vector_product (vector_a, vector_b)
 Returns the cross product of two vectors.
 
double precision function, dimension(size(a, 1)) compute_matrix_vector_product (a, b)
 Returns the A*b.
 

Detailed Description

Linear algebra functions.

Function/Subroutine Documentation

◆ compute_euclidian_distance()

double precision function mod_math_linalg::compute_euclidian_distance ( double precision, dimension(:), intent(in) point_a,
double precision, dimension(:), intent(in) point_b )

Returns the Euclidian distance between two points.

◆ compute_matrix_vector_product()

double precision function, dimension(size(a,1)) mod_math_linalg::compute_matrix_vector_product ( double precision, dimension(:,:) a,
double precision, dimension(:) b )

Returns the A*b.

Parameters
AThe Matrix of size ndim1 x ndim2
bThe vector of size ndim2

◆ compute_normalized()

double precision function, dimension(size(vector)) mod_math_linalg::compute_normalized ( double precision, dimension(:), intent(in) vector)

Returns the normalized vector.

◆ compute_orthogonal()

double precision function, dimension(size(vector)) mod_math_linalg::compute_orthogonal ( double precision, dimension(:), intent(in) vector)

Returns an orthogonal vector.

◆ compute_scalar_product()

double precision function mod_math_linalg::compute_scalar_product ( double precision, dimension(:), intent(in) vector_a,
double precision, dimension(:), intent(in) vector_b )

Returns the scalar product of two vectors.

◆ compute_vector_product()

double precision function, dimension(3) mod_math_linalg::compute_vector_product ( double precision, dimension(3), intent(in) vector_a,
double precision, dimension(3), intent(in) vector_b )

Returns the cross product of two vectors.