#include <BonTMatrix.hpp>
Classes | |
struct | ColumnOrder |
Structure for ordering matrix by columns. More... | |
struct | RowOrder |
Structure for ordering matrix by columns. More... | |
struct | TMatOrdering |
Structure for ordering matrix. More... | |
Public Types | |
typedef vector< std::pair< int, int > > | RowS |
Storage for non empty rows. More... | |
Public Member Functions | |
TMat () | |
Default constructor. More... | |
void | freeSpace () |
TMat (const TMat &other) | |
Copy constructor. More... | |
TMat (const CoinPackedMatrix &M, MatrixStorageType T) | |
Construct from a CoinPackedMatrix. More... | |
TMat & | operator= (const TMat &rhs) |
Assignment operator. More... | |
TMat & | operator= (const CoinPackedMatrix &M) |
Assignment from a CoinPackedMatrix. More... | |
void | resize (int nnz) |
~TMat () | |
int | numNonEmptyRows () |
Get number of non empty rows. More... | |
const RowS & | nonEmptyRows () const |
Get the list of non empty row. More... | |
int | numNonEmptyCols () |
Get number of non empty cols. More... | |
const RowS & | nonEmptyCols () const |
Get the list of non empty row. More... | |
const vector< int > & | orderByColumns () |
Orders current matrix by columns. More... | |
const vector< int > & | orderByRows () |
Orders current matrix by rows. More... | |
void | removeDuplicates () |
Remove the duplicated entries. More... | |
void | makeQuadUpperDiag () |
Assuming that this is representing a quadratic form. More... | |
void | resizeOrdering (vector< int > &ordering, unsigned int newSize) |
void | create (const CoinPackedMatrix &M) |
Create the TMat from M. More... | |
void | make_upper_triangular (const MatrixStorageType &T) |
void | make_lower_to_be_upper () |
Assuing that this is representing the lower triangle of a symetric matrix makes it the upper triangle. More... | |
void | make_full_upper_triangular () |
Assuming that this is representing a quadratic form. More... | |
Public Attributes | |
int * | iRow_ |
int * | jCol_ |
double * | value_ |
int | nnz_ |
int | capacity_ |
vector< int > | columnOrdering_ |
vector< int > | rowOrdering_ |
RowS | nonEmptyRows_ |
RowS | nonEmptyCols_ |
Definition at line 22 of file BonTMatrix.hpp.
typedef vector< std::pair< int, int> > Bonmin::TMat::RowS |
Storage for non empty rows.
first is row number and second is first element in row.
Definition at line 32 of file BonTMatrix.hpp.
|
inline |
Default constructor.
Definition at line 35 of file BonTMatrix.hpp.
Bonmin::TMat::TMat | ( | const TMat & | other | ) |
Copy constructor.
Definition at line 15 of file BonTMatrix.cpp.
Bonmin::TMat::TMat | ( | const CoinPackedMatrix & | M, |
MatrixStorageType | T | ||
) |
Construct from a CoinPackedMatrix.
Definition at line 25 of file BonTMatrix.cpp.
Bonmin::TMat::~TMat | ( | ) |
Definition at line 95 of file BonTMatrix.cpp.
|
inline |
Definition at line 40 of file BonTMatrix.hpp.
Assignment operator.
Definition at line 34 of file BonTMatrix.cpp.
TMat & Bonmin::TMat::operator= | ( | const CoinPackedMatrix & | M | ) |
Assignment from a CoinPackedMatrix.
Definition at line 52 of file BonTMatrix.cpp.
Definition at line 58 of file BonTMatrix.hpp.
int Bonmin::TMat::numNonEmptyRows | ( | ) |
Get number of non empty rows.
Put the non-empty rows of quadratic form currently stored into indices.
Allocate the array and returns its size.
Definition at line 104 of file BonTMatrix.cpp.
|
inline |
Get the list of non empty row.
Definition at line 71 of file BonTMatrix.hpp.
int Bonmin::TMat::numNonEmptyCols | ( | ) |
Get number of non empty cols.
Put the non-empty rows of quadratic form currently stored into indices.
Allocate the array and returns its size.
Definition at line 123 of file BonTMatrix.cpp.
|
inline |
Get the list of non empty row.
Definition at line 78 of file BonTMatrix.hpp.
Orders current matrix by columns.
Definition at line 118 of file BonTMatrix.hpp.
Orders current matrix by rows.
Definition at line 124 of file BonTMatrix.hpp.
void Bonmin::TMat::removeDuplicates | ( | ) |
Remove the duplicated entries.
Definition at line 139 of file BonTMatrix.cpp.
void Bonmin::TMat::makeQuadUpperDiag | ( | ) |
Assuming that this is representing a quadratic form.
Produce equivalent quadratic form with only upper triange stored.
Definition at line 137 of file BonTMatrix.hpp.
void Bonmin::TMat::create | ( | const CoinPackedMatrix & | M | ) |
Create the TMat from M.
Definition at line 61 of file BonTMatrix.cpp.
void Bonmin::TMat::make_upper_triangular | ( | const MatrixStorageType & | T | ) |
Definition at line 160 of file BonTMatrix.cpp.
void Bonmin::TMat::make_lower_to_be_upper | ( | ) |
Assuing that this is representing the lower triangle of a symetric matrix makes it the upper triangle.
Definition at line 185 of file BonTMatrix.cpp.
void Bonmin::TMat::make_full_upper_triangular | ( | ) |
Assuming that this is representing a quadratic form.
Makes it upper diagonal.
Definition at line 193 of file BonTMatrix.cpp.
int* Bonmin::TMat::iRow_ |
Definition at line 23 of file BonTMatrix.hpp.
int* Bonmin::TMat::jCol_ |
Definition at line 24 of file BonTMatrix.hpp.
double* Bonmin::TMat::value_ |
Definition at line 25 of file BonTMatrix.hpp.
int Bonmin::TMat::nnz_ |
Definition at line 26 of file BonTMatrix.hpp.
int Bonmin::TMat::capacity_ |
Definition at line 27 of file BonTMatrix.hpp.
Definition at line 147 of file BonTMatrix.hpp.
Definition at line 149 of file BonTMatrix.hpp.
RowS Bonmin::TMat::nonEmptyRows_ |
Definition at line 158 of file BonTMatrix.hpp.
RowS Bonmin::TMat::nonEmptyCols_ |
Definition at line 161 of file BonTMatrix.hpp.