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 36 of file svectorbase.h.

Constructor & Destructor Documentation

◆ Nonzero() [1/2]

Nonzero ( const Nonzero< S > &  vec)

Definition at line 52 of file svectorbase.h.

◆ Nonzero() [2/2]

Nonzero ( )

Definition at line 58 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 70 of file svectorbase.h.

Member Data Documentation

◆ idx

◆ val