Module bader::utils

source ·
Expand description

Misc functions mainly for vector and matrix manipulation.

Functions

  • compute the cross product between two vectors
  • compute the dot product between a vector and a matrix
  • compute the integer dot product between a vector and a matrix
  • calculates the inverse of a 3x3 lattice if it is invertible
  • compute the norm of a vector
  • compute M.T * M
  • returns the first index that is not vacuum from a sorted index list
  • compute the dot product between two vectors
  • compute the sum of two vectors