Bonmin 1.8.9
Loading...
Searching...
No Matches
Bonmin::TMat Struct Reference

#include <BonTMatrix.hpp>

+ Collaboration diagram for Bonmin::TMat:

Public Types

typedef vector< std::pair< int, int > > RowS
 Storage for non empty rows.
 

Public Member Functions

 TMat ()
 Default constructor.
 
void freeSpace ()
 
 TMat (const TMat &other)
 Copy constructor.
 
 TMat (const CoinPackedMatrix &M, MatrixStorageType T)
 Construct from a CoinPackedMatrix.
 
TMatoperator= (const TMat &rhs)
 Assignment operator.
 
TMatoperator= (const CoinPackedMatrix &M)
 Assignment from a CoinPackedMatrix.
 
void resize (int nnz)
 
 ~TMat ()
 
int numNonEmptyRows ()
 Get number of non empty rows.
 
const RowSnonEmptyRows () const
 Get the list of non empty row.
 
int numNonEmptyCols ()
 Get number of non empty cols.
 
const RowSnonEmptyCols () const
 Get the list of non empty row.
 
const vector< int > & orderByColumns ()
 Orders current matrix by columns.
 
const vector< int > & orderByRows ()
 Orders current matrix by rows.
 
void removeDuplicates ()
 Remove the duplicated entries.
 
void makeQuadUpperDiag ()
 Assuming that this is representing a quadratic form.
 
void resizeOrdering (vector< int > &ordering, unsigned int newSize)
 
void create (const CoinPackedMatrix &M)
 Create the TMat from M.
 
void make_upper_triangular (const MatrixStorageType &T)
 
void make_lower_to_be_upper ()
 
void make_full_upper_triangular ()
 

Public Attributes

int * iRow_
 
int * jCol_
 
double * value_
 
int nnz_
 
int capacity_
 
vector< int > columnOrdering_
 
vector< int > rowOrdering_
 
RowS nonEmptyRows_
 
RowS nonEmptyCols_
 

Detailed Description

Definition at line 22 of file BonTMatrix.hpp.

Member Typedef Documentation

◆ RowS

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.

Constructor & Destructor Documentation

◆ TMat() [1/3]

Bonmin::TMat::TMat ( )
inline

Default constructor.

Definition at line 35 of file BonTMatrix.hpp.

◆ TMat() [2/3]

Bonmin::TMat::TMat ( const TMat & other)

Copy constructor.

◆ TMat() [3/3]

Bonmin::TMat::TMat ( const CoinPackedMatrix & M,
MatrixStorageType T )

Construct from a CoinPackedMatrix.

◆ ~TMat()

Bonmin::TMat::~TMat ( )

Member Function Documentation

◆ freeSpace()

void Bonmin::TMat::freeSpace ( )
inline

Definition at line 40 of file BonTMatrix.hpp.

◆ operator=() [1/2]

TMat & Bonmin::TMat::operator= ( const TMat & rhs)

Assignment operator.

◆ operator=() [2/2]

TMat & Bonmin::TMat::operator= ( const CoinPackedMatrix & M)

Assignment from a CoinPackedMatrix.

◆ resize()

void Bonmin::TMat::resize ( int nnz)
inline

Definition at line 58 of file BonTMatrix.hpp.

◆ numNonEmptyRows()

int Bonmin::TMat::numNonEmptyRows ( )

Get number of non empty rows.

◆ nonEmptyRows()

const RowS & Bonmin::TMat::nonEmptyRows ( ) const
inline

Get the list of non empty row.

Definition at line 71 of file BonTMatrix.hpp.

◆ numNonEmptyCols()

int Bonmin::TMat::numNonEmptyCols ( )

Get number of non empty cols.

◆ nonEmptyCols()

const RowS & Bonmin::TMat::nonEmptyCols ( ) const
inline

Get the list of non empty row.

Definition at line 78 of file BonTMatrix.hpp.

◆ orderByColumns()

const vector< int > & Bonmin::TMat::orderByColumns ( )
inline

Orders current matrix by columns.

Definition at line 118 of file BonTMatrix.hpp.

◆ orderByRows()

const vector< int > & Bonmin::TMat::orderByRows ( )
inline

Orders current matrix by rows.

Definition at line 124 of file BonTMatrix.hpp.

◆ removeDuplicates()

void Bonmin::TMat::removeDuplicates ( )

Remove the duplicated entries.

◆ makeQuadUpperDiag()

void Bonmin::TMat::makeQuadUpperDiag ( )

Assuming that this is representing a quadratic form.

Produce equivalent quadratic form with only upper triange stored.

◆ resizeOrdering()

void Bonmin::TMat::resizeOrdering ( vector< int > & ordering,
unsigned int newSize )
inline

Definition at line 137 of file BonTMatrix.hpp.

◆ create()

void Bonmin::TMat::create ( const CoinPackedMatrix & M)

Create the TMat from M.

◆ make_upper_triangular()

void Bonmin::TMat::make_upper_triangular ( const MatrixStorageType & T)

◆ make_lower_to_be_upper()

void Bonmin::TMat::make_lower_to_be_upper ( )

◆ make_full_upper_triangular()

void Bonmin::TMat::make_full_upper_triangular ( )

Member Data Documentation

◆ iRow_

int* Bonmin::TMat::iRow_

Definition at line 23 of file BonTMatrix.hpp.

◆ jCol_

int* Bonmin::TMat::jCol_

Definition at line 24 of file BonTMatrix.hpp.

◆ value_

double* Bonmin::TMat::value_

Definition at line 25 of file BonTMatrix.hpp.

◆ nnz_

int Bonmin::TMat::nnz_

Definition at line 26 of file BonTMatrix.hpp.

◆ capacity_

int Bonmin::TMat::capacity_

Definition at line 27 of file BonTMatrix.hpp.

◆ columnOrdering_

vector<int> Bonmin::TMat::columnOrdering_

Definition at line 147 of file BonTMatrix.hpp.

◆ rowOrdering_

vector<int> Bonmin::TMat::rowOrdering_

Definition at line 149 of file BonTMatrix.hpp.

◆ nonEmptyRows_

RowS Bonmin::TMat::nonEmptyRows_

Definition at line 158 of file BonTMatrix.hpp.

◆ nonEmptyCols_

RowS Bonmin::TMat::nonEmptyCols_

Definition at line 161 of file BonTMatrix.hpp.


The documentation for this struct was generated from the following file: