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

Protected Attributes

double da = 3.0
double db = 4.0
double dc = 5.0
int ia = 3
int ib = 4
int ic = 5
float fa = 3.0
float fb = 4.0
float fc = 5.0
std::string output

Detailed Description

  • Tested Functions:
    • Construct
      • two ways of constructing a 3d vector
    • Set
      • set a 3d vector
    • Equal
      • overload operator "=" for 3d vector
    • equal
      • overload operator "=" for scalar
    • PlusEqual
      • overload operator "+=" for 3d vector
    • MinusEqual
      • overload operator "-=" for 3d vector
    • MultiplyEqual
      • overload operator "*=" for (3d vector) * scalar
    • OverEqual
      • overload operator "/=" for (3d vector) / scalar
    • Negative
      • overload operator "-" to get - Vector3
    • Reverse
      • same as negative
    • Access
      • access elements by using "[]"
    • ConstAccess
      • access elements by using "[]" through pinters
      • withough chaning element values
    • VectorPlus
      • overload operator "+" for two 3d vectors
    • VectorMinus
      • overload operator "-" for two 3d vectors
    • Norm2
      • get the square of norm of a 3d vector
    • Norm
      • get the norm of a 3d vector
    • Normalize
      • normalize a 3d vector
    • VmultiplyV
      • overload operator "*" to calculate
      • the dot product of two 3d vectors
    • VdotV
      • dot product of two 3d vectors
    • VmultiplyNum
      • overload operator "*" to calculate
      • the product of a 3d vector with a scalar
      • of the product of a scalar with a 3d vector
    • VoverNum
      • overload operator "/" to calculate
      • a 3d vector over a scalar
    • OperatorCaret
      • overload operator "^" to calculate
      • the cross product of two 3d vectors
    • VeqV
      • overload operator "==" to assert
      • the equality between two 3d vectors
    • VneV
      • overload operator "!=" to assert
      • the inequality between two 3d vectors
    • VltV
      • overload operator "<" to sort
        • the "less than" relationship between two 3d vectors
    • StdOutV
      • overload operator "<<" to print out
      • a 3d vectors on standard output
    • PrintV
      • print a 3d vectors on standard output
      • with formats

Member Data Documentation

◆ da

double Vector3Test::da = 3.0
protected

◆ db

double Vector3Test::db = 4.0
protected

◆ dc

double Vector3Test::dc = 5.0
protected

◆ fa

float Vector3Test::fa = 3.0
protected

◆ fb

float Vector3Test::fb = 4.0
protected

◆ fc

float Vector3Test::fc = 5.0
protected

◆ ia

int Vector3Test::ia = 3
protected

◆ ib

int Vector3Test::ib = 4
protected

◆ ic

int Vector3Test::ic = 5
protected

◆ output

std::string Vector3Test::output
protected

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