Classes | Defines | Functions
core/vbl/vbl_sparse_array_2d.h File Reference

a space efficient 2d array More...

#include <vcl_iostream.h>
#include <vcl_utility.h>
#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...

Defines

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

Functions

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

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 vcl_pair
   

Definition in file vbl_sparse_array_2d.h.


Define Documentation

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

Definition at line 95 of file vbl_sparse_array_2d.h.

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

Definition at line 92 of file vbl_sparse_array_2d.h.


Function Documentation

template<class T >
vcl_ostream& operator<< ( vcl_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.