Class PhaseVector#

Inheritance Relationships#

Base Type#

Class Documentation#

class PhaseVector : public OrbitUtils::CppPyWrapper#

A double values vector.

Public Functions

PhaseVector(int n)#

Constructor.

PhaseVector(PhaseVector *vIn)#

A copy-constructor.

~PhaseVector()#

Destructor.

double *getArray()#

Returns the pointer to the inner array.

int size()#

Returns the size of the vector.

void zero()#

Sets the vector to zero.

double &value(int i)#

Returns one component with index i.

int copyTo(PhaseVector *vIn)#

Copies the existing vector to another.

int add(double val)#

Adds a value to each component.

int add(PhaseVector *mtrx)#

Adds a vector to the existing one.

double norm()#

Returns the norm.

int mult(double val)#

Multiplies the vector’s components by a number.

double dot(PhaseVector *vctr)#

Returns scalar multiplication of two vectors.