Navigation

Operators and Keywords

Function List:

C++ API

DiagArray2< T > Class Template Reference

#include <DiagArray2.h>

Inherits Array< T >.

Inherited by MDiagArray2< Complex >, MDiagArray2< double >, MDiagArray2< float >, and MDiagArray2< FloatComplex >.

Collaboration diagram for DiagArray2< T >:

List of all members.


Classes

class  Proxy

Public Member Functions

 DiagArray2 (void)
 DiagArray2 (octave_idx_type r, octave_idx_type c)
 DiagArray2 (octave_idx_type r, octave_idx_type c, const T &val)
 DiagArray2 (const dim_vector &dv)
 DiagArray2 (const Array< T > &a)
 DiagArray2 (const DiagArray2< T > &a)
template<class U >
 DiagArray2 (const DiagArray2< U > &a)
 ~DiagArray2 (void)
DiagArray2< T > & operator= (const DiagArray2< T > &a)
octave_idx_type dim1 (void) const
octave_idx_type dim2 (void) const
octave_idx_type rows (void) const
octave_idx_type cols (void) const
octave_idx_type columns (void) const
octave_idx_type diag_length (void) const
octave_idx_type length (void) const
octave_idx_type nelem (void) const
octave_idx_type numel (void) const
size_t byte_size (void) const
dim_vector dims (void) const
Array< Tdiag (octave_idx_type k=0) const
T elem (octave_idx_type r, octave_idx_type c) const
Telem (octave_idx_type r, octave_idx_type c)
T dgelem (octave_idx_type i) const
Tdgelem (octave_idx_type i)
T checkelem (octave_idx_type r, octave_idx_type c) const
Proxy checkelem (octave_idx_type r, octave_idx_type c)
T operator() (octave_idx_type r, octave_idx_type c) const
Toperator() (octave_idx_type r, octave_idx_type c)
T xelem (octave_idx_type r, octave_idx_type c) const
Tdgxelem (octave_idx_type i)
T dgxelem (octave_idx_type i) const
void resize (octave_idx_type n, octave_idx_type m)
void resize_fill (octave_idx_type n, octave_idx_type m, const T &val)
DiagArray2< Ttranspose (void) const
DiagArray2< Thermitian (T(*fcn)(const T &)=0) const
 operator Array2< T > (void) const
const Tdata (void) const
const Tfortran_vec (void) const
Tfortran_vec (void)
void print_info (std::ostream &os, const std::string &prefix) const

Protected Member Functions

 DiagArray2 (T *d, octave_idx_type r, octave_idx_type c)

Protected Attributes

octave_idx_type d1
octave_idx_type d2

Friends

class Proxy

template<class T>
class DiagArray2< T >


Constructor & Destructor Documentation

template<class T>
DiagArray2< T >::DiagArray2 ( T d,
octave_idx_type  r,
octave_idx_type  c 
) [inline, protected]

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

template<class T>
DiagArray2< T >::DiagArray2 ( octave_idx_type  r,
octave_idx_type  c 
) [inline]

template<class T>
DiagArray2< T >::DiagArray2 ( octave_idx_type  r,
octave_idx_type  c,
const T val 
) [inline]

template<class T>
DiagArray2< T >::DiagArray2 ( const dim_vector dv  )  [inline]

template<class T>
DiagArray2< T >::DiagArray2 ( const Array< T > &  a  )  [inline]

template<class T>
DiagArray2< T >::DiagArray2 ( const DiagArray2< T > &  a  )  [inline]

template<class T>
template<class U >
DiagArray2< T >::DiagArray2 ( const DiagArray2< U > &  a  )  [inline]

template<class T>
DiagArray2< T >::~DiagArray2 ( void   )  [inline]


Member Function Documentation

template<class T>
size_t DiagArray2< T >::byte_size ( void   )  const [inline]

Reimplemented from Array< T >.

template<class T>
Proxy DiagArray2< T >::checkelem ( octave_idx_type  r,
octave_idx_type  c 
)

Reimplemented from Array< T >.

template<class T>
T DiagArray2< T >::checkelem ( octave_idx_type  r,
octave_idx_type  c 
) const

Reimplemented from Array< T >.

template<class T>
octave_idx_type DiagArray2< T >::cols ( void   )  const [inline]

Reimplemented from Array< T >.

template<class T>
octave_idx_type DiagArray2< T >::columns ( void   )  const [inline]

Reimplemented from Array< T >.

template<class T>
const T* DiagArray2< T >::data ( void   )  const [inline]

Reimplemented from Array< T >.

template<class T>
T& DiagArray2< T >::dgelem ( octave_idx_type  i  )  [inline]

template<class T>
T DiagArray2< T >::dgelem ( octave_idx_type  i  )  const [inline]

template<class T>
T DiagArray2< T >::dgxelem ( octave_idx_type  i  )  const [inline]

template<class T>
T& DiagArray2< T >::dgxelem ( octave_idx_type  i  )  [inline]

template<class T>
octave_idx_type DiagArray2< T >::diag_length ( void   )  const [inline]

template<class T>
octave_idx_type DiagArray2< T >::dim1 ( void   )  const [inline]

Reimplemented from Array< T >.

template<class T>
octave_idx_type DiagArray2< T >::dim2 ( void   )  const [inline]

Reimplemented from Array< T >.

template<class T>
dim_vector DiagArray2< T >::dims ( void   )  const [inline]

Reimplemented from Array< T >.

template<class T>
T& DiagArray2< T >::elem ( octave_idx_type  r,
octave_idx_type  c 
) [inline]

Reimplemented from Array< T >.

template<class T>
T DiagArray2< T >::elem ( octave_idx_type  r,
octave_idx_type  c 
) const [inline]

Reimplemented from Array< T >.

template<class T>
T* DiagArray2< T >::fortran_vec ( void   )  [inline]

Reimplemented from Array< T >.

template<class T>
const T* DiagArray2< T >::fortran_vec ( void   )  const [inline]

Reimplemented from Array< T >.

template<class T>
DiagArray2<T> DiagArray2< T >::hermitian ( T(*)(const T &)  fcn = 0  )  const

Reimplemented from Array< T >.

Reimplemented in MDiagArray2< T >.

template<class T>
octave_idx_type DiagArray2< T >::length ( void   )  const [inline]

Reimplemented from Array< T >.

template<class T>
octave_idx_type DiagArray2< T >::nelem ( void   )  const [inline]

Reimplemented from Array< T >.

template<class T>
octave_idx_type DiagArray2< T >::numel ( void   )  const [inline]

Reimplemented from Array< T >.

template<class T>
DiagArray2< T >::operator Array2< T > ( void   )  const

template<class T>
T& DiagArray2< T >::operator() ( octave_idx_type  r,
octave_idx_type  c 
) [inline]

Reimplemented from Array< T >.

template<class T>
T DiagArray2< T >::operator() ( octave_idx_type  r,
octave_idx_type  c 
) const [inline]

Reimplemented from Array< T >.

template<class T>
DiagArray2<T>& DiagArray2< T >::operator= ( const DiagArray2< T > &  a  )  [inline]

template<class T>
void DiagArray2< T >::print_info ( std::ostream os,
const std::string prefix 
) const [inline]

Reimplemented from Array< T >.

template<class T>
void DiagArray2< T >::resize ( octave_idx_type  n,
octave_idx_type  m 
)

template<class T>
void DiagArray2< T >::resize_fill ( octave_idx_type  n,
octave_idx_type  m,
const T val 
)

Reimplemented from Array< T >.

template<class T>
octave_idx_type DiagArray2< T >::rows ( void   )  const [inline]

Reimplemented from Array< T >.

template<class T>
T DiagArray2< T >::xelem ( octave_idx_type  r,
octave_idx_type  c 
) const [inline]

Reimplemented from Array< T >.


Friends And Related Function Documentation

template<class T>
friend class Proxy [friend]


Member Data Documentation

template<class T>
octave_idx_type DiagArray2< T >::d1 [protected]

template<class T>
octave_idx_type DiagArray2< T >::d2 [protected]


The documentation for this class was generated from the following file: