vtf-logo

Free functions for SparseArray.


Functions

template<int N, typename T>
std::ostream & ads::operator<< (std::ostream &out, const SparseArray< N, T > &x)
 Write a SparseArray in ascii format.
template<int N, typename T>
std::istream & ads::operator>> (std::istream &in, SparseArray< N, T > &x)
 Read a SparseArray in ascii format.

Function Documentation

template<int N, typename T>
std::ostream& ads::operator<< ( std::ostream &  out,
const SparseArray< N, T > &  x 
) [inline]

Write a SparseArray in ascii format.

Here is the 1-D file format. size indicates the number of non-null elements.

  null_value
  size
  index[0]
  ...
  index[size-1]
  value[0]
  ...
  value[size-1] 

template<int N, typename T>
std::istream& ads::operator>> ( std::istream &  in,
SparseArray< N, T > &  x 
) [inline]

Read a SparseArray in ascii format.

Here is the 1-D file format. size indicates the number of non-null elements.

  null_value
  size
  index[0]
  ...
  index[size-1]
  value[0]
  ...
  value[size-1] 


Generated on Fri Aug 24 12:55:37 2007 for Algorithms and Data Structures Package by  doxygen 1.4.7