FEDEM Solver  R8.0
Source code of the dynamics solver
Data Types | Modules | Functions/Subroutines
manipMatrixModule.f90 File Reference

Utilities for manipulation of integer and real matrices. More...

Data Types

interface  manipmatrixmodule::writeobject
 Standard routine for writing an object to file. More...
 
interface  manipmatrixmodule::diagmatmul
 Matrix multiplication involving diagonal matrices. More...
 
interface  manipmatrixmodule::matmul34
 Matrix multiplication involving 3×4 position matrices. More...
 
interface  manipmatrixmodule::dyadic_product
 Dyadic product between two vectors. More...
 

Modules

module  manipmatrixmodule
 Module with subroutines for manipulation of integer and real matrices.
 

Functions/Subroutines

real(dp) function, dimension(3) manipmatrixmodule::cross_product (y, z)
 Returns the cross product between the vectors y and z. More...
 
real(dp) function, dimension(size(x), size(x)), private manipmatrixmodule::travmulv (x)
 Returns the dyadic vector product xTx. More...
 
real(dp) function, dimension(size(x), size(y)), private manipmatrixmodule::traumulv (x, y)
 Returns the dyadic vector product xTy. More...
 
subroutine manipmatrixmodule::diagtransform (D, A, T, ierr)
 Performs the transformation T = ATDA where D is a diagonal matrix. More...
 
subroutine, private manipmatrixmodule::diagmatmulmat (D, A, B, iflag, ierr)
 Performs the matrix multiplication B = c1B + c2DA. More...
 
subroutine, private manipmatrixmodule::diagmatmulvec (D, X, Y, iflag, ierr)
 Performs the matrix-vector multiplication Y = c1Y + c2DX. More...
 
real(dp) function, dimension(3, 4), private manipmatrixmodule::matmul34mat (a, b)
 Returns the matrix product ab. More...
 
real(dp) function, dimension(3), private manipmatrixmodule::matmul34vec (a, b)
 Returns the matrix-vector product ab. More...
 
real(dp) function, dimension(2, 2) manipmatrixmodule::invert22 (a, lpu, ierr)
 Returns the inverse of the 2×2 matrix a. More...
 
real(dp) function, dimension(3, 3) manipmatrixmodule::invert33 (a, lpu, ierr)
 Returns the inverse of the 3×3 matrix a. More...
 
real(dp) function, dimension(3, 4) manipmatrixmodule::invert34 (a)
 Returns the inverse of the 3×4 transformation matrix a. More...
 
real(dp) function, dimension(3, 4) manipmatrixmodule::trans3p (P1, P2, P3, lpu, ierr)
 Returns a 3×4 transformation matrix calculated from 3 points. More...
 
real(dp) function len3sqr (v)
 brief Calculates the square of the length of a 3D vector. More...
 
real(dp) function, dimension(3, 3) manipmatrixmodule::trans1v (V1, lpu, ierr)
 Returns a 3×3 transformation matrix based on the given X-direction vector V1. More...
 
subroutine, private manipmatrixmodule::writeintarray (array, lpu, text)
 Writes out and integer array in a formatted way. More...
 
subroutine manipmatrixmodule::writeint8array (array, lpu, text)
 Writes out an integer array in a formatted way. More...
 
subroutine, private manipmatrixmodule::writerealarray (array, lpu, text, nellIn, eps)
 Writes out a single precision array in a formatted way. More...
 
subroutine, private manipmatrixmodule::writerealmatrix (array, lpu, text, nellIn, eps)
 Writes out a 2D single precision array in a formatted way. More...
 
subroutine, private manipmatrixmodule::writedoublearray (array, lpu, text, nellIn, eps)
 Writes out a double precision array in a formatted way. More...
 
subroutine, private manipmatrixmodule::writedoublematrix (array, lpu, text, nellIn, eps)
 Writes out a 2D double precision array in a formatted way. More...
 
subroutine manipmatrixmodule::unify (A)
 Unifies the given matrix A. More...
 
integer function, dimension(:,:), pointer manipmatrixmodule::matrixpointtoarray_int (array, rows, columns)
 Returns a matrix pointer to an integer array. More...
 
real(dp) function, dimension(:,:), pointer manipmatrixmodule::matrixpointtoarray_real (array, rows, columns)
 Returns a matrix pointer to a real array. More...
 

Detailed Description

Utilities for manipulation of integer and real matrices.

Function/Subroutine Documentation

◆ len3sqr()

real(dp) function trans3p::len3sqr ( real(dp), dimension(3), intent(in)  v)

brief Calculates the square of the length of a 3D vector.