LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
Class defining a sparse vector (holes are zeroes) More...
#include <cstddef>
#include <stdexcept>
#include <vector>
#include <ostream>
#include <iterator>
#include <algorithm>
#include <numeric>
#include <type_traits>
Go to the source code of this file.
Namespaces | |
lar | |
LArSoft-specific namespace. | |
Functions | |
template<typename T > | |
value_const_iterator< T > | lar::operator+ (typename value_const_iterator< T >::difference_type ofs, value_const_iterator< T > &iter) |
Returns an iterator pointing ahead of this one by the specified steps. More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &out, const lar::sparse_vector< T > &v) |
Prints a sparse vector into a stream. More... | |
Class defining a sparse vector (holes are zeroes)
Definition in file sparse_vector.h.
std::ostream & operator<< | ( | std::ostream & | out, |
const lar::sparse_vector< T > & | v | ||
) |
Prints a sparse vector into a stream.
T | template type of the sparse vector |
out | output stream |
v | the sparse vector to be written |
The output is in the form:
Sparse vector of size ## with ## ranges: [min1 - max1] (size1) { elements of the first range } [min2 - max2] (size2) { elements of the second range } ...
Definition at line 1830 of file sparse_vector.h.
References lar::sparse_vector< T >::begin(), lar::sparse_vector< T >::end(), lar::sparse_vector< T >::datarange_t::extend(), and lar::sparse_vector< T >::size().