lpinterface
 All Classes Namespaces Files Functions Variables Enumerations Enumerator
Public Types | Public Member Functions | List of all members
lpint::Row< T > Class Template Reference
Inheritance diagram for lpint::Row< T >:
lpint::MatrixEntry< T >

Public Types

using Index = typename MatrixEntry< T >::Index
 
using SizeType = typename MatrixEntry< T >::SizeType
 
- Public Types inherited from lpint::MatrixEntry< T >
using Index = int
 
using SizeType = std::size_t
 
using iterator_category = std::forward_iterator_tag
 
using value_type = T
 
using difference_type = int
 
using pointer = value_type *
 
using reference = value_type &
 

Public Member Functions

 Row (const std::size_t size)
 
 Row (const std::vector< T > &values, const std::vector< Index > &indices)
 
 Row (MatrixEntry< T > &&m)
 
- Public Member Functions inherited from lpint::MatrixEntry< T >
 MatrixEntry (MatrixEntry< T > &&)=default
 
 MatrixEntry (const MatrixEntry< T > &)=delete
 
MatrixEntry< T > & operator= (const MatrixEntry< T > &)=delete
 
MatrixEntry< T > & operator= (MatrixEntry< T > &&)=default
 
 MatrixEntry (const std::size_t size)
 
 MatrixEntry (const std::vector< T > &values, const std::vector< Index > &indices)
 
operator[] (const SizeType index) const
 Indexing operator; can be used identically to a dense vector. Will perform bounds checking ifndef NDEBUG. More...
 
lower_bound () const
 Returns the smallest entry of this matrix element.
 
upper_bound () const
 Returns the largest entry of this matrix element.
 
std::vector< T >::size_type num_nonzero () const
 Return the number of nonzero entries in the matrix entry.
 
const std::vector< T > & values () const
 Get a const reference to the underlying value array.
 
std::vector< T > & values ()
 Get a reference to the underlying value array.
 
const std::vector< Index > & nonzero_indices () const
 Get a const reference to the underlying nonzero indices.
 
std::vector< Index > & nonzero_indices ()
 Get a reference to the underlying nonzero indices.
 
iterator begin ()
 
const_iterator begin () const
 Obtain a const iterator to the begin of the underlying value array.
 
iterator end ()
 Obtain an iterator to the end of the underlying value array.
 
const_iterator end () const
 Obtain a const iterator to the end of the underlying value array.
 

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