|
LLVM 22.0.0git
|
#include "llvm/CodeGen/PBQP/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. | |
| 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 | transpose () const |
| Matrix transpose. | |
| Matrix & | operator+= (const Matrix &M) |
| Add the given matrix to this one. | |
| Matrix | operator+ (const Matrix &M) |
Friends | |
| hash_code | hash_value (const Matrix &M) |
| Return a hash_code for the given matrix. | |
Construct a PBQP Matrix with the given dimensions.
Definition at line 116 of file Math.h.
Referenced by hash_value, Matrix(), Matrix(), llvm::PBQP::MDMatrix< MatrixMetadata >::MDMatrix(), llvm::PBQP::MDMatrix< MatrixMetadata >::MDMatrix(), operator+(), operator+=(), operator==(), and transpose().
|
inline |
Move construct a PBQP matrix.
Definition at line 136 of file Math.h.
References Matrix(), and llvm::move().
Returns the given column as a vector.
Definition at line 185 of file Math.h.
References assert(), and llvm::CallingConv::C.
Referenced by llvm::PBQP::backpropagate().
|
inline |
Returns the given row as a vector.
Definition at line 176 of file Math.h.
References assert(), and llvm::CallingConv::C.
Referenced by llvm::PBQP::backpropagate().
|
inline |
Return the number of rows in this matrix.
Definition at line 150 of file Math.h.
References assert().
Referenced by llvm::PBQP::applyR2().
|
inline |
Return a hash_code for the given matrix.
Definition at line 226 of file Math.h.
References llvm::hash_combine(), llvm::hash_combine_range(), and Matrix().