milupHPC documentation
  • src
  • cuda_utils
Namespaces | Macros | Functions
linalg.cu File Reference
#include "../../include/cuda_utils/linalg.cuh"
+ Include dependency graph for linalg.cu:

Go to the source code of this file.

Namespaces

namespace  CudaUtils
 

Macros

#define EPS_JACOBI   1e-10
 
#define EPS_JACOBI   1e-10
 

Functions

__device__ int CudaUtils::sign (real x)
 Get sign of floating point variable. More...
 
__device__ int CudaUtils::stressIndex (int particleIndex, int row, int col)
 map [i][j] to [i*DIM*DIM+j] for the tensors More...
 
__device__ void CudaUtils::copyMatrix (real src[DIM][DIM], real dst[DIM][DIM])
 Deep copy of matrix. More...
 
__device__ void CudaUtils::transposeMatrix (real m[DIM][DIM])
 Transpose matrix. More...
 
__device__ void CudaUtils::multiplyMatrix (real A[DIM][DIM], real B[DIM][DIM], real C[DIM][DIM])
 
__device__ void CudaUtils::multiply (real A[][DIM], real B[][DIM], real C[][DIM])
 
__device__ void CudaUtils::identityMatrix (real A[DIM][DIM])
 Return identity matrix. More...
 
__device__ int CudaUtils::maxMatrix (real M[DIM][DIM], int *e, int *f, real *elmax)
 Returns the indices of the greatest non-diagonal element of the matrix M. More...
 
__device__ void CudaUtils::rotateMatrix (volatile real m[DIM][DIM], volatile real c, volatile real s, volatile int e, volatile int f)
 Rotate matrix. More...
 
__device__ int CudaUtils::calculateAllEigenvalues (real M[DIM][DIM], real eigenvalues[DIM], real v[DIM][DIM])
 Computes all eigenvalues and eigenvectors of the symmetric matrix M. More...
 
__device__ real CudaUtils::calculateMaxEigenvalue (real M[DIM][DIM])
 Computes the eigenvalues of the symmetric matrix M. More...
 
__device__ real CudaUtils::det2x2 (real a, real b, real c, real d)
 Determinant of a 2x2 matrix. More...
 
__device__ int CudaUtils::invertMatrix (real *m, real *inverted)
 Invert matrix. More...
 

Macro Definition Documentation

◆ EPS_JACOBI [1/2]

#define EPS_JACOBI   1e-10

◆ EPS_JACOBI [2/2]

#define EPS_JACOBI   1e-10

milupHPC - src/cuda_utils/linalg.cu File Reference
Generated on Wed Aug 31 2022 12:16:53 by Doxygen 1.9.3