Public Member Functions | Public Attributes | Private Member Functions

Sparse< T >::SparseRep Class Reference

#include "Sparse.h"

Collaboration diagram for Sparse< T >::SparseRep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SparseRep (void)
 SparseRep (octave_idx_type n)
 SparseRep (octave_idx_type nr, octave_idx_type nc, octave_idx_type nz)
 SparseRep (const SparseRep &a)
 SparseRep (octave_idx_type nr, octave_idx_type nc)
 ~SparseRep (void)
octave_idx_type ccidx (octave_idx_type i) const
cdata (octave_idx_type i) const
celem (octave_idx_type _r, octave_idx_type _c) const
void change_length (octave_idx_type nz)
octave_idx_typecidx (octave_idx_type i)
octave_idx_type cridx (octave_idx_type i) const
T & data (octave_idx_type i)
T & elem (octave_idx_type _r, octave_idx_type _c)
bool indices_ok (void) const
octave_idx_type length (void) const
void maybe_compress (bool remove_zeros)
octave_idx_type nnz (void) const
octave_idx_typeridx (octave_idx_type i)

Public Attributes

octave_idx_typec
octave_refcount< intcount
T * d
octave_idx_type ncols
octave_idx_type nrows
octave_idx_type nzmx
octave_idx_typer

Private Member Functions

SparseRepoperator= (const SparseRep &a)

Detailed Description

template<class T>
class Sparse< T >::SparseRep

Definition at line 62 of file Sparse.h.


Constructor & Destructor Documentation

template<class T>
Sparse< T >::SparseRep::SparseRep ( void   )  [inline]

Definition at line 74 of file Sparse.h.

template<class T>
Sparse< T >::SparseRep::SparseRep ( octave_idx_type  n  )  [inline]

Definition at line 77 of file Sparse.h.

template<class T>
Sparse< T >::SparseRep::SparseRep ( octave_idx_type  nr,
octave_idx_type  nc 
) [inline]

Definition at line 84 of file Sparse.h.

template<class T>
Sparse< T >::SparseRep::SparseRep ( octave_idx_type  nr,
octave_idx_type  nc,
octave_idx_type  nz 
) [inline]

Definition at line 91 of file Sparse.h.

template<class T>
Sparse< T >::SparseRep::SparseRep ( const SparseRep a  )  [inline]
template<class T>
Sparse< T >::SparseRep::~SparseRep ( void   )  [inline]

Definition at line 109 of file Sparse.h.

References d.


Member Function Documentation

template<class T>
octave_idx_type Sparse< T >::SparseRep::ccidx ( octave_idx_type  i  )  const [inline]

Definition at line 129 of file Sparse.h.

Referenced by Sparse< bool >::cidx().

template<class T>
T Sparse< T >::SparseRep::cdata ( octave_idx_type  i  )  const [inline]

Definition at line 121 of file Sparse.h.

References d.

template<class T >
T Sparse< T >::SparseRep::celem ( octave_idx_type  _r,
octave_idx_type  _c 
) const
template<class T >
void Sparse< T >::SparseRep::change_length ( octave_idx_type  nz  ) 
template<class T>
octave_idx_type& Sparse< T >::SparseRep::cidx ( octave_idx_type  i  )  [inline]

Definition at line 127 of file Sparse.h.

Referenced by Sparse< bool >::cidx(), and Sparse< bool >::xcidx().

template<class T>
octave_idx_type Sparse< T >::SparseRep::cridx ( octave_idx_type  i  )  const [inline]

Definition at line 125 of file Sparse.h.

Referenced by Sparse< bool >::ridx().

template<class T>
T& Sparse< T >::SparseRep::data ( octave_idx_type  i  )  [inline]

Definition at line 119 of file Sparse.h.

References d.

Referenced by Sparse< bool >::data(), and Sparse< bool >::xdata().

template<class T >
T & Sparse< T >::SparseRep::elem ( octave_idx_type  _r,
octave_idx_type  _c 
)
template<class T >
bool Sparse< T >::SparseRep::indices_ok ( void   )  const
template<class T>
octave_idx_type Sparse< T >::SparseRep::length ( void   )  const [inline]

Definition at line 111 of file Sparse.h.

Referenced by Sparse< bool >::nzmax().

template<class T >
void Sparse< T >::SparseRep::maybe_compress ( bool  remove_zeros  ) 
template<class T>
octave_idx_type Sparse< T >::SparseRep::nnz ( void   )  const [inline]
template<class T>
SparseRep& Sparse< T >::SparseRep::operator= ( const SparseRep a  )  [private]
template<class T>
octave_idx_type& Sparse< T >::SparseRep::ridx ( octave_idx_type  i  )  [inline]

Definition at line 123 of file Sparse.h.

Referenced by Sparse< bool >::ridx(), and Sparse< bool >::xridx().


Member Data Documentation

template<class T>
octave_idx_type* Sparse< T >::SparseRep::c
template<class T>
octave_refcount<int> Sparse< T >::SparseRep::count
template<class T>
T* Sparse< T >::SparseRep::d
template<class T>
octave_idx_type Sparse< T >::SparseRep::ncols
template<class T>
octave_idx_type Sparse< T >::SparseRep::nrows
template<class T>
octave_idx_type Sparse< T >::SparseRep::nzmx
template<class T>
octave_idx_type* Sparse< T >::SparseRep::r

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines