Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::glop::CompactSparseMatrixView Class Reference

#include <sparse.h>

Public Member Functions

 CompactSparseMatrixView (const CompactSparseMatrix *compact_matrix, const RowToColMapping *basis)
 
 CompactSparseMatrixView (const CompactSparseMatrix *compact_matrix, const std::vector< ColIndex > *columns)
 
bool IsEmpty () const
 Same behavior as the SparseMatrix functions above.
 
RowIndex num_rows () const
 
ColIndex num_cols () const
 
ColumnView column (ColIndex col) const
 
EntryIndex num_entries () const
 
Fractional ComputeOneNorm () const
 
Fractional ComputeInfinityNorm () const
 

Detailed Description

A matrix view of the basis columns of a CompactSparseMatrix, with basis specified as a RowToColMapping. This class does not take ownership of the underlying matrix or basis, and thus they must outlive this class (and keep the same address in memory).

Definition at line 566 of file sparse.h.

Constructor & Destructor Documentation

◆ CompactSparseMatrixView() [1/2]

operations_research::glop::CompactSparseMatrixView::CompactSparseMatrixView ( const CompactSparseMatrix * compact_matrix,
const RowToColMapping * basis )
inline

Definition at line 568 of file sparse.h.

◆ CompactSparseMatrixView() [2/2]

operations_research::glop::CompactSparseMatrixView::CompactSparseMatrixView ( const CompactSparseMatrix * compact_matrix,
const std::vector< ColIndex > * columns )
inline

Definition at line 572 of file sparse.h.

Member Function Documentation

◆ column()

ColumnView operations_research::glop::CompactSparseMatrixView::column ( ColIndex col) const
inline

Definition at line 580 of file sparse.h.

◆ ComputeInfinityNorm()

Fractional operations_research::glop::CompactSparseMatrixView::ComputeInfinityNorm ( ) const

Definition at line 664 of file sparse.cc.

◆ ComputeOneNorm()

Fractional operations_research::glop::CompactSparseMatrixView::ComputeOneNorm ( ) const

Definition at line 661 of file sparse.cc.

◆ IsEmpty()

bool operations_research::glop::CompactSparseMatrixView::IsEmpty ( ) const
inline

Same behavior as the SparseMatrix functions above.

Definition at line 577 of file sparse.h.

◆ num_cols()

ColIndex operations_research::glop::CompactSparseMatrixView::num_cols ( ) const
inline

Definition at line 579 of file sparse.h.

◆ num_entries()

EntryIndex operations_research::glop::CompactSparseMatrixView::num_entries ( ) const

Definition at line 658 of file sparse.cc.

◆ num_rows()

RowIndex operations_research::glop::CompactSparseMatrixView::num_rows ( ) const
inline

Definition at line 578 of file sparse.h.


The documentation for this class was generated from the following files: