LLVM API Documentation
#include <Math.h>

Public Member Functions | |
| Matrix (unsigned Rows, unsigned Cols) | |
| Construct a PBQP Matrix with the given dimensions. | |
| Matrix (unsigned Rows, unsigned Cols, PBQPNum InitVal) | |
| Construct a PBQP Matrix with the given dimensions and initial value. | |
| Matrix (const Matrix &M) | |
| Copy construct a PBQP matrix. | |
| Matrix (Matrix &&M) | |
| Move construct a PBQP matrix. | |
| ~Matrix () | |
| Destroy this matrix, return its memory. | |
| Matrix & | operator= (const Matrix &M) |
| Copy-assignment operator. | |
| Matrix & | operator= (Matrix &&M) |
| Move-assignment operator. | |
| bool | operator== (const Matrix &M) const |
| Comparison operator. | |
| unsigned | getRows () const |
| Return the number of rows in this matrix. | |
| unsigned | getCols () const |
| Return the number of cols in this matrix. | |
| PBQPNum * | operator[] (unsigned R) |
| Matrix element access. | |
| const PBQPNum * | operator[] (unsigned R) const |
| Matrix element access. | |
| Vector | getRowAsVector (unsigned R) const |
| Returns the given row as a vector. | |
| Vector | getColAsVector (unsigned C) const |
| Returns the given column as a vector. | |
| Matrix & | reset (PBQPNum Val=0) |
| Reset the matrix to the given value. | |
| Matrix & | setRow (unsigned R, PBQPNum Val) |
| Set a single row of this matrix to the given value. | |
| Matrix & | setCol (unsigned C, PBQPNum Val) |
| Set a single column of this matrix to the given value. | |
| Matrix | transpose () const |
| Matrix transpose. | |
| Vector | diagonalize () const |
| Returns the diagonal of the matrix as a vector. | |
| Matrix & | operator+= (const Matrix &M) |
| Add the given matrix to this one. | |
| Matrix | operator+ (const Matrix &M) |
| PBQPNum | getRowMin (unsigned R) const |
| Returns the minimum of the given row. | |
| PBQPNum | getColMin (unsigned C) const |
| Returns the minimum of the given column. | |
| Matrix & | subFromRow (unsigned R, PBQPNum Val) |
| Subtracts the given scalar from the elements of the given row. | |
| Matrix & | subFromCol (unsigned C, PBQPNum Val) |
| Subtracts the given scalar from the elements of the given column. | |
| bool | isZero () const |
| Returns true if this is a zero matrix. | |
Friends | |
| class | MatrixComparator |
| PBQP::Matrix::Matrix | ( | unsigned | Rows, |
| unsigned | Cols | ||
| ) | [inline] |
| PBQP::Matrix::Matrix | ( | unsigned | Rows, |
| unsigned | Cols, | ||
| PBQPNum | InitVal | ||
| ) | [inline] |
| PBQP::Matrix::Matrix | ( | const Matrix & | M | ) | [inline] |
| PBQP::Matrix::Matrix | ( | Matrix && | M | ) | [inline] |
| PBQP::Matrix::~Matrix | ( | ) | [inline] |
| Vector PBQP::Matrix::diagonalize | ( | ) | const [inline] |
| Vector PBQP::Matrix::getColAsVector | ( | unsigned | C | ) | const [inline] |
Returns the given column as a vector.
Definition at line 268 of file Math.h.
References llvm::CallingConv::C.
Referenced by PBQP::backpropagate().
| PBQPNum PBQP::Matrix::getColMin | ( | unsigned | C | ) | const [inline] |
Returns the minimum of the given column.
Definition at line 347 of file Math.h.
References llvm::CallingConv::C.
| unsigned PBQP::Matrix::getCols | ( | ) | const [inline] |
Return the number of cols in this matrix.
Definition at line 239 of file Math.h.
Referenced by PBQP::RegAlloc::MatrixMetadata::MatrixMetadata().
| Vector PBQP::Matrix::getRowAsVector | ( | unsigned | R | ) | const [inline] |
Returns the given row as a vector.
Definition at line 259 of file Math.h.
References llvm::CallingConv::C.
Referenced by PBQP::backpropagate(), and PBQP::operator<<().
| PBQPNum PBQP::Matrix::getRowMin | ( | unsigned | R | ) | const [inline] |
| unsigned PBQP::Matrix::getRows | ( | ) | const [inline] |
Return the number of rows in this matrix.
Definition at line 233 of file Math.h.
Referenced by PBQP::applyR2(), PBQP::RegAlloc::MatrixMetadata::MatrixMetadata(), and PBQP::operator<<().
| bool PBQP::Matrix::isZero | ( | ) | const [inline] |
| Matrix& PBQP::Matrix::reset | ( | PBQPNum | Val = 0 | ) | [inline] |
| Matrix& PBQP::Matrix::setCol | ( | unsigned | C, |
| PBQPNum | Val | ||
| ) | [inline] |
Set a single column of this matrix to the given value.
Definition at line 292 of file Math.h.
References llvm::CallingConv::C.
| Matrix& PBQP::Matrix::setRow | ( | unsigned | R, |
| PBQPNum | Val | ||
| ) | [inline] |
| Matrix& PBQP::Matrix::subFromCol | ( | unsigned | C, |
| PBQPNum | Val | ||
| ) | [inline] |
Subtracts the given scalar from the elements of the given column.
Definition at line 367 of file Math.h.
References llvm::CallingConv::C.
| Matrix& PBQP::Matrix::subFromRow | ( | unsigned | R, |
| PBQPNum | Val | ||
| ) | [inline] |
| Matrix PBQP::Matrix::transpose | ( | ) | const [inline] |
friend class MatrixComparator [friend] |