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