LLVM 22.0.0git
Public Member Functions | List of all members
llvm::PBQP::Vector Class Reference

PBQP Vector class. More...

#include "llvm/CodeGen/PBQP/Math.h"

Inheritance diagram for llvm::PBQP::Vector:
[legend]

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 (Vector &&V)
 Move construct a PBQP vector.
 
const PBQPNumbegin () const
 
const PBQPNumend () const
 
PBQPNumbegin ()
 
PBQPNumend ()
 
bool operator== (const Vector &V) const
 Comparison operator.
 
unsigned getLength () const
 Return the length of the vector.
 
PBQPNumoperator[] (unsigned Index)
 Element access.
 
const PBQPNumoperator[] (unsigned Index) const
 Const element access.
 
Vectoroperator+= (const Vector &V)
 Add another vector to this one.
 
unsigned minIndex () const
 Returns the index of the minimum value in this vector.
 

Detailed Description

PBQP Vector class.

Definition at line 27 of file Math.h.

Constructor & Destructor Documentation

◆ Vector() [1/4]

llvm::PBQP::Vector::Vector ( unsigned  Length)
inlineexplicit

Construct a PBQP vector of the given size.

Definition at line 30 of file Math.h.

◆ Vector() [2/4]

llvm::PBQP::Vector::Vector ( unsigned  Length,
PBQPNum  InitVal 
)
inline

Construct a PBQP vector with initializer.

Definition at line 33 of file Math.h.

References begin(), and end().

◆ Vector() [3/4]

llvm::PBQP::Vector::Vector ( const Vector V)
inline

Copy construct a PBQP vector.

Definition at line 38 of file Math.h.

◆ Vector() [4/4]

llvm::PBQP::Vector::Vector ( Vector &&  V)
inline

Move construct a PBQP vector.

Definition at line 41 of file Math.h.

Member Function Documentation

◆ begin() [1/2]

PBQPNum * llvm::PBQP::Vector::begin ( )
inline

Definition at line 46 of file Math.h.

References llvm::MutableArrayRef< T >::begin().

◆ begin() [2/2]

const PBQPNum * llvm::PBQP::Vector::begin ( ) const
inline

Definition at line 44 of file Math.h.

References llvm::MutableArrayRef< T >::begin().

Referenced by minIndex(), operator+=(), and Vector().

◆ end() [1/2]

PBQPNum * llvm::PBQP::Vector::end ( )
inline

Definition at line 47 of file Math.h.

References llvm::MutableArrayRef< T >::end().

◆ end() [2/2]

const PBQPNum * llvm::PBQP::Vector::end ( ) const
inline

Definition at line 45 of file Math.h.

References llvm::MutableArrayRef< T >::end().

Referenced by operator+=(), and Vector().

◆ getLength()

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

◆ minIndex()

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

Returns the index of the minimum value in this vector.

Definition at line 84 of file Math.h.

References assert(), begin(), llvm::ArrayRef< T >::empty(), and llvm::min_element().

◆ operator+=()

Vector & llvm::PBQP::Vector::operator+= ( const Vector V)
inline

Add another vector to this one.

Definition at line 76 of file Math.h.

References assert(), begin(), llvm::ArrayRef< T >::empty(), end(), and llvm::ArrayRef< T >::size().

◆ operator==()

bool llvm::PBQP::Vector::operator== ( const Vector V) const
inline

Comparison operator.

Definition at line 50 of file Math.h.

References assert(), llvm::ArrayRef< T >::empty(), and llvm::equal().

◆ operator[]() [1/2]

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

Element access.

Definition at line 62 of file Math.h.

References assert(), llvm::ArrayRef< T >::empty(), Index, and llvm::ArrayRef< T >::size().

◆ operator[]() [2/2]

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

Const element access.

Definition at line 69 of file Math.h.

References assert(), llvm::ArrayRef< T >::empty(), Index, and llvm::ArrayRef< T >::size().


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