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 ()
 
template<>
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 37 of file svectorbase.h.

Constructor & Destructor Documentation

◆ Nonzero() [1/2]

Nonzero ( const Nonzero< S > &  vec)

Definition at line 54 of file svectorbase.h.

◆ Nonzero() [2/2]

Nonzero ( )

Definition at line 60 of file svectorbase.h.

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Definition at line 72 of file svectorbase.h.

Member Data Documentation

◆ idx

◆ val