#include <CouenneMatrix.hpp>
Classes | |
struct | compare_pair_ind |
Public Member Functions | |
CouenneExprMatrix () | |
~CouenneExprMatrix () | |
Destructor. More... | |
CouenneExprMatrix (const CouenneExprMatrix &rhs) | |
copy constructor More... | |
CouenneExprMatrix & | operator= (const CouenneExprMatrix &rhs) |
Assignment operator. More... | |
CouenneExprMatrix * | clone () |
const std::set< std::pair< int, CouenneSparseVector * > , compare_pair_ind > & | getRows () const |
const std::set< std::pair< int, CouenneSparseVector * > , compare_pair_ind > & | getCols () const |
std::vector< expression * > & | varIndices () |
void | add_element (int row, int column, expression *elem) |
Insertion into matrix. More... | |
void | print () const |
Pretty print. More... | |
long unsigned int | size () |
return size of (square sub-) matrix More... | |
CouenneSparseVector & | operator* (const CouenneSparseVector &factor) const |
matrix * vector More... | |
CouenneExprMatrix & | operator* (const CouenneExprMatrix &post) const |
matrix * matrix More... | |
Protected Attributes | |
std::set< std::pair< int, CouenneSparseVector * > , compare_pair_ind > | row_ |
row major More... | |
std::set< std::pair< int, CouenneSparseVector * > , compare_pair_ind > | col_ |
col major More... | |
std::vector< expression * > | varIndices_ |
if used in sdp cuts, contains indices of x_i used in X_ij = x_i * x_j More... | |
Definition at line 104 of file CouenneMatrix.hpp.
|
inline |
Definition at line 123 of file CouenneMatrix.hpp.
CouenneExprMatrix::~CouenneExprMatrix | ( | ) |
Destructor.
Definition at line 196 of file CouenneMatrix.cpp.
CouenneExprMatrix::CouenneExprMatrix | ( | const CouenneExprMatrix & | rhs | ) |
copy constructor
Definition at line 53 of file CouenneMatrix.cpp.
CouenneExprMatrix & CouenneExprMatrix::operator= | ( | const CouenneExprMatrix & | rhs | ) |
Assignment operator.
Definition at line 61 of file CouenneMatrix.cpp.
|
inline |
Definition at line 129 of file CouenneMatrix.hpp.
|
inline |
Definition at line 131 of file CouenneMatrix.hpp.
|
inline |
Definition at line 132 of file CouenneMatrix.hpp.
|
inline |
Definition at line 134 of file CouenneMatrix.hpp.
void CouenneExprMatrix::add_element | ( | int | row, |
int | column, | ||
expression * | elem | ||
) |
Insertion into matrix.
Definition at line 109 of file CouenneMatrix.cpp.
void CouenneExprMatrix::print | ( | ) | const |
Pretty print.
Definition at line 251 of file CouenneMatrix.cpp.
long unsigned int CouenneExprMatrix::size | ( | ) |
return size of (square sub-) matrix
Definition at line 88 of file CouenneMatrix.cpp.
CouenneSparseVector & CouenneExprMatrix::operator* | ( | const CouenneSparseVector & | factor | ) | const |
matrix * vector
Definition at line 171 of file CouenneMatrix.cpp.
CouenneExprMatrix & CouenneExprMatrix::operator* | ( | const CouenneExprMatrix & | post | ) | const |
matrix * matrix
Definition at line 189 of file CouenneMatrix.cpp.
|
protected |
row major
Definition at line 116 of file CouenneMatrix.hpp.
|
protected |
col major
Definition at line 117 of file CouenneMatrix.hpp.
|
protected |
if used in sdp cuts, contains indices of x_i used in X_ij = x_i * x_j
Definition at line 119 of file CouenneMatrix.hpp.