Scippy

SoPlex

Sequential object-oriented simPlex

Nonzero< R > Class Template Reference

Sparse vector nonzero element. More...

#include <svectorbase.h>

Public Member Functions

template<class S >
Nonzero< R > & operator= (const Nonzero< S > &vec)
 
template<class S >
 Nonzero (const Nonzero< S > &vec)
 
 Nonzero ()
 
Nonzero< Real > & operator= (const Nonzero< S > &vec)
 

Public Attributes

val
 Value of nonzero element. More...
 
int idx
 Index of nonzero element. More...
 

Detailed Description

template<class R>
class soplex::Nonzero< R >

Sparse vector nonzero element.

SVectorBase keeps its nonzeros in an array of Nonzeros providing members for saving the index and value.

Definition at line 46 of file svectorbase.h.

Constructor & Destructor Documentation

◆ Nonzero() [1/2]

Nonzero ( const Nonzero< S > &  vec)

Definition at line 63 of file svectorbase.h.

◆ Nonzero() [2/2]

Nonzero ( )

Definition at line 69 of file svectorbase.h.

Member Function Documentation

◆ operator=() [1/2]

Nonzero< R > & operator= ( const Nonzero< S > &  vec)

Definition at line 54 of file svectorbase.h.

References Nonzero< R >::idx, and Nonzero< R >::val.

◆ operator=() [2/2]

Nonzero< Real > & operator= ( const Nonzero< S > &  vec)

Definition at line 81 of file svectorbase.h.

References Nonzero< R >::idx, and Nonzero< R >::val.

Member Data Documentation

◆ idx

◆ val