LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
PBQP::Vector Class Reference

PBQP Vector class. More...

#include <Math.h>

Public Member Functions

 Vector (unsigned length)
 Construct a PBQP vector of the given size. More...
 
 Vector (unsigned length, PBQPNum initVal)
 Construct a PBQP vector with initializer. More...
 
 Vector (const Vector &v)
 Copy construct a PBQP vector. More...
 
 ~Vector ()
 Destroy this vector, return its memory. More...
 
Vectoroperator= (const Vector &v)
 Assignment operator. More...
 
unsigned getLength () const
 Return the length of the vector. More...
 
PBQPNumoperator[] (unsigned index)
 Element access. More...
 
const PBQPNumoperator[] (unsigned index) const
 Const element access. More...
 
Vectoroperator+= (const Vector &v)
 Add another vector to this one. More...
 
Vectoroperator-= (const Vector &v)
 Subtract another vector from this one. More...
 
unsigned minIndex () const
 Returns the index of the minimum value in this vector. More...
 

Detailed Description

PBQP Vector class.

Definition at line 22 of file Math.h.

Constructor & Destructor Documentation

PBQP::Vector::Vector ( unsigned  length)
inlineexplicit

Construct a PBQP vector of the given size.

Definition at line 26 of file Math.h.

PBQP::Vector::Vector ( unsigned  length,
PBQPNum  initVal 
)
inline

Construct a PBQP vector with initializer.

Definition at line 31 of file Math.h.

PBQP::Vector::Vector ( const Vector v)
inline

Copy construct a PBQP vector.

Definition at line 37 of file Math.h.

PBQP::Vector::~Vector ( )
inline

Destroy this vector, return its memory.

Definition at line 43 of file Math.h.

Member Function Documentation

unsigned PBQP::Vector::getLength ( ) const
inline
unsigned PBQP::Vector::minIndex ( ) const
inline

Returns the index of the minimum value in this vector.

Definition at line 86 of file Math.h.

Vector& PBQP::Vector::operator+= ( const Vector v)
inline

Add another vector to this one.

Definition at line 72 of file Math.h.

Vector& PBQP::Vector::operator-= ( const Vector v)
inline

Subtract another vector from this one.

Definition at line 79 of file Math.h.

Vector& PBQP::Vector::operator= ( const Vector v)
inline

Assignment operator.

Definition at line 46 of file Math.h.

PBQPNum& PBQP::Vector::operator[] ( unsigned  index)
inline

Element access.

Definition at line 60 of file Math.h.

const PBQPNum& PBQP::Vector::operator[] ( unsigned  index) const
inline

Const element access.

Definition at line 66 of file Math.h.


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