Classes | Macros | Functions
vbl_sparse_array_2d.h File Reference

a space efficient 2d array More...

#include <iostream>
#include <utility>
#include <vbl/vbl_sparse_array_base.h>

Go to the source code of this file.

Classes

class  vbl_sparse_array_2d< T >
 Sparse 2D array allowing space efficient access of the form s(300,700) =2. More...
 

Macros

#define VBL_SPARSE_ARRAY_BASE_INSTANTIATE(T)   extern "please include vbl/vbl_sparse_array_base.hxx instead"
 
#define VBL_SPARSE_ARRAY_2D_INSTANTIATE(T)   extern "please include vbl/vbl_sparse_array_2d.hxx instead"
 

Functions

template<class T >
std::ostream & operator<< (std::ostream &s, const vbl_sparse_array_2d< T > &a)
 Stream operator - print the Array to a stream in "(i,j): value" format. More...
 

Detailed Description

a space efficient 2d array

Author
Andrew W. Fitzgibbon, Oxford RRG
Date
02 Oct 96

vbl_sparse_array_2d is a sparse 2D array allowing space efficient access of the form s(3000,7000) = 2.

  Modifications
   26 March 01 cjb updated documentation
   10 April 01 IMS (Manchester ISBE) modified to use vbl_sparse_array_base
   11 April 01 Peter Vanroose - vbl_index_2d moved to separate file
   11 April 01 Ian Scott - replaced used of vbl_index_2d with std::pair

Definition in file vbl_sparse_array_2d.h.

Macro Definition Documentation

◆ VBL_SPARSE_ARRAY_2D_INSTANTIATE

#define VBL_SPARSE_ARRAY_2D_INSTANTIATE (   T)    extern "please include vbl/vbl_sparse_array_2d.hxx instead"

Definition at line 95 of file vbl_sparse_array_2d.h.

◆ VBL_SPARSE_ARRAY_BASE_INSTANTIATE

#define VBL_SPARSE_ARRAY_BASE_INSTANTIATE (   T)    extern "please include vbl/vbl_sparse_array_base.hxx instead"

Definition at line 92 of file vbl_sparse_array_2d.h.

Function Documentation

◆ operator<<()

template<class T >
std::ostream& operator<< ( std::ostream &  s,
const vbl_sparse_array_2d< T > &  a 
)
inline

Stream operator - print the Array to a stream in "(i,j): value" format.

Definition at line 86 of file vbl_sparse_array_2d.h.