LLVM API Documentation
#include <PBQPMath.h>
Public Member Functions | |
| Vector (unsigned length) | |
| Construct a PBQP vector of the given size. | |
| Vector (unsigned length, PBQPNum initVal) | |
| Construct a PBQP vector with initializer. | |
| Vector (const Vector &v) | |
| Copy construct a PBQP vector. | |
| ~Vector () | |
| Destroy this vector, return its memory. | |
| Vector & | operator= (const Vector &v) |
| Assignment operator. | |
| unsigned | getLength () const |
| Return the length of the vector. | |
| PBQPNum & | operator[] (unsigned index) |
| Element access. | |
| const PBQPNum & | operator[] (unsigned index) const |
| Const element access. | |
| Vector & | operator+= (const Vector &v) |
| Add another vector to this one. | |
| Vector & | operator-= (const Vector &v) |
| Subtract another vector from this one. | |
| unsigned | minIndex () const |
| Returns the index of the minimum value in this vector. | |
Definition at line 22 of file PBQPMath.h.
| PBQP::Vector::Vector | ( | unsigned | length | ) | [inline, explicit] |
| PBQP::Vector::Vector | ( | const Vector & | v | ) | [inline] |
| PBQP::Vector::~Vector | ( | ) | [inline] |
| unsigned PBQP::Vector::getLength | ( | ) | const [inline] |
Return the length of the vector.
Definition at line 55 of file PBQPMath.h.
Referenced by PBQP::NodeBase< PBQP::SimpleNode, PBQP::SimpleEdge >::NodeBase(), PBQP::operator<<(), and PBQP::Heuristics::Briggs::NodeData::setup().
| unsigned PBQP::Vector::minIndex | ( | ) | const [inline] |