|
LLVM
4.0.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... | |
| 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 | transpose () const |
| Matrix transpose. More... | |
| Matrix & | operator+= (const Matrix &M) |
| Add the given matrix to this one. More... | |
| Matrix | operator+ (const Matrix &M) |
Friends | |
| hash_code | hash_value (const Matrix &) |
| Return a hash_code for the given matrix. More... | |
|
inline |
Returns the given column as a vector.
Definition at line 195 of file Math.h.
Referenced by llvm::PBQP::backpropagate().
|
inline |
Return the number of cols in this matrix.
Definition at line 166 of file Math.h.
References assert().
Referenced by llvm::PBQP::RegAlloc::MatrixMetadata::MatrixMetadata().
Returns the given row as a vector.
Definition at line 186 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 160 of file Math.h.
References assert().
Referenced by llvm::PBQP::applyR2(), llvm::PBQP::RegAlloc::MatrixMetadata::MatrixMetadata(), and llvm::PBQP::operator<<().
Add the given matrix to this one.
Definition at line 214 of file Math.h.
References assert(), and llvm::transform().
Comparison operator.
Definition at line 152 of file Math.h.
References assert(), and llvm::lltok::equal.
|
inline |
1.8.6