ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Matrix3Test Class Reference
Inheritance diagram for Matrix3Test:
Collaboration diagram for Matrix3Test:

Protected Member Functions

ModuleBase::Matrix3 get_random_matrix3 ()

Protected Attributes

ModuleBase::Matrix3 matrix_a
ModuleBase::Matrix3 matrix_a1
ModuleBase::Matrix3 matrix_b
std::string output

Detailed Description

  • Tested Functions:
    • Construct
      • two ways of constructing a 3x3 matrix
    • Identity
      • set a 3x3 matrix to identity matrix
    • Zero
      • set all elements of a 3x3 matrix to zero
    • Det
      • calculate the determinant of 3x3 matrix
    • Transpose
      • do the transpose of 3x3 matrix
    • Inverse
      • do the inverse of 3x3 matrix
    • Assignment
      • overload assignment operator "=" for 3x3 matrix
    • AddEqual
      • overload operator "+=" for 3x3 matrix
    • MinusEqual
      • overload operator "-=" for 3x3 matrix
    • MultiplyEqual
      • overload operator "*=" for (3x3 matrix) * scalar
    • OverEqual
      • overload operator "/=" for (3x3 matrix) / scaler
    • Print
      • print a 3x3 matrix
    • MaddM
      • overload operator "+" for two 3x3 matrices
    • MminusM
      • overload operator "-" for two 3x3 matrices
    • MoverNum
      • overload operator "/" for a (3x3 matrix)/(scalar)
    • MmultiplyM
      • overload operator "*" for (3x3 matrix)*(3x3 matrix)
    • MmultiplyNum
      • overload operator "*" for (3x3 matrix)*(scalar)
      • and (scalar)*(3x3 matrix)
    • MmultiplyV
      • overload operator "*" for (3x3 matrix)*(Vector3)
    • VmultiplyM
      • overload operator "*" for (Vector3)*(3x3 matrix)
    • MeqM
      • overload operator "==" to assert
      • the equality between two 3x3 matrices
    • MneM
      • overload operator "!=" to assert
      • the inequality between two 3x3 matrices
    • ToMatrix
      • change the form of a 3x3 matrix from that of class Matrix3
      • to that of class matrix -Template V Multiply M -tamplate classes for (Vector3)*(3x3 matrix)

Member Function Documentation

◆ get_random_matrix3()

ModuleBase::Matrix3 Matrix3Test::get_random_matrix3 ( )
inlineprotected

Member Data Documentation

◆ matrix_a

ModuleBase::Matrix3 Matrix3Test::matrix_a
protected

◆ matrix_a1

ModuleBase::Matrix3 Matrix3Test::matrix_a1
protected

◆ matrix_b

ModuleBase::Matrix3 Matrix3Test::matrix_b
protected

◆ output

std::string Matrix3Test::output
protected

The documentation for this class was generated from the following file: