DenseLinAlgPack::DMatrix Class Reference

More...

#include <DenseLinAlgPack_DMatrixClass.hpp>

List of all members.
 DMatrix ()
 Construct a matrix with rows = cols = 0.
 DMatrix (size_type rows, size_type cols)
 Construct an uninitialied rectangular matrix (rows x cols).
 DMatrix (value_type val, size_type rows, size_type cols)
 
 DMatrix (const value_type *p, size_type rows, size_type cols)
 DMatrix (const DMatrixSlice &gms)
 
void resize (size_type rows, size_type cols, value_type val=value_type())
 Resize matrix to a (rows x cols) matrix and initializes any added elements by val.
void free ()
 frees memory and leaves a (0 x 0) matrix
size_type rows () const
 Return the number of rows.
size_type cols () const
 Return the number of columns.
EOverLap overlap (const DMatrixSlice &gms) const
reference operator() (size_type i, size_type j)
 Return element at row i, col j (i,j) (1-based).
const_reference operator() (size_type i, size_type j) const
 Return element at row i, col j (i,j) (1-based).
DVectorSlice row (size_type i)
 Return DVectorSlice object representing the ith row (1-based; 1,2,..,this->rows()#).
const DVectorSlice row (size_type i) const
 
DVectorSlice col (size_type j)
 Return DVectorSlice object representing the jth column (1-based; 1,2,..,this->cols()#).
const DVectorSlice col (size_type j) const
 
DVectorSlice diag (difference_type k=0)
const DVectorSlice diag (difference_type k=0) const
 
DMatrixSlice operator() (const Range1D &I, const Range1D &J)
const DMatrixSlice operator() (const Range1D &I, const Range1D &J) const
 
DMatrixSlice operator() (size_type i1, size_type i2, size_type j1, size_type j2)
const DMatrixSlice operator() (size_type i1, size_type i2, size_type j1, size_type j2) const
 
DMatrixSlice operator() ()
 Return a DMatrixSlice that represents this entire matrix.
const DMatrixSlice operator() () const
 
 operator DMatrixSlice ()
 
 operator const DMatrixSlice () const
 
DMatrixoperator= (value_type rhs)
 
DMatrixoperator= (const DMatrixSlice &gms_rhs)
 
DMatrixoperator= (const DMatrix &rhs)
 Same as above. Needed to override the default assignment operator.
size_type max_rows () const
 Return the number of rows in the full matrix. Equivalent to BLAS LDA argument.
value_typecol_ptr (size_type j)
 
const value_typecol_ptr (size_type j) const
 Same as above.

Public Types

typedef DenseLinAlgPack::value_type value_type
typedef DenseLinAlgPack::size_type size_type
typedef ptrdiff_t difference_type
typedef value_typereference
typedef const value_typeconst_reference
typedef std::valarray< value_typevalarray

Private Member Functions

void validate_row_subscript (size_type i) const
void validate_col_subscript (size_type j) const
DVectorSlice p_diag (difference_type k) const

Private Attributes

std::valarray< value_typev_
size_type rows_


Detailed Description

Definition at line 359 of file DenseLinAlgPack_DMatrixClass.hpp.


Member Typedef Documentation

typedef DenseLinAlgPack::value_type DenseLinAlgPack::DMatrix::value_type

Definition at line 376 of file DenseLinAlgPack_DMatrixClass.hpp.

typedef DenseLinAlgPack::size_type DenseLinAlgPack::DMatrix::size_type

Definition at line 377 of file DenseLinAlgPack_DMatrixClass.hpp.

typedef ptrdiff_t DenseLinAlgPack::DMatrix::difference_type

Definition at line 378 of file DenseLinAlgPack_DMatrixClass.hpp.

typedef value_type& DenseLinAlgPack::DMatrix::reference

Definition at line 379 of file DenseLinAlgPack_DMatrixClass.hpp.

typedef const value_type& DenseLinAlgPack::DMatrix::const_reference

Definition at line 380 of file DenseLinAlgPack_DMatrixClass.hpp.

typedef std::valarray<value_type> DenseLinAlgPack::DMatrix::valarray

Definition at line 381 of file DenseLinAlgPack_DMatrixClass.hpp.


Constructor & Destructor Documentation

DenseLinAlgPack::DMatrix::DMatrix (  )  [inline]

Construct a matrix with rows = cols = 0.

Definition at line 964 of file DenseLinAlgPack_DMatrixClass.hpp.

DenseLinAlgPack::DMatrix::DMatrix ( size_type  rows,
size_type  cols 
) [inline, explicit]

Construct an uninitialied rectangular matrix (rows x cols).

Definition at line 968 of file DenseLinAlgPack_DMatrixClass.hpp.

DenseLinAlgPack::DMatrix::DMatrix ( value_type  val,
size_type  rows,
size_type  cols 
) [inline, explicit]

Definition at line 973 of file DenseLinAlgPack_DMatrixClass.hpp.

DenseLinAlgPack::DMatrix::DMatrix ( const value_type p,
size_type  rows,
size_type  cols 
) [inline, explicit]

Definition at line 978 of file DenseLinAlgPack_DMatrixClass.hpp.

DenseLinAlgPack::DMatrix::DMatrix ( const DMatrixSlice gms  )  [inline]

Definition at line 988 of file DenseLinAlgPack_DMatrixClass.hpp.


Member Function Documentation

void DenseLinAlgPack::DMatrix::resize ( size_type  rows,
size_type  cols,
value_type  val = value_type() 
) [inline]

Resize matrix to a (rows x cols) matrix and initializes any added elements by val.

Definition at line 997 of file DenseLinAlgPack_DMatrixClass.hpp.

void DenseLinAlgPack::DMatrix::free (  )  [inline]

frees memory and leaves a (0 x 0) matrix

Definition at line 1005 of file DenseLinAlgPack_DMatrixClass.hpp.

DMatrix::size_type DenseLinAlgPack::DMatrix::rows (  )  const [inline]

Return the number of rows.

Definition at line 1013 of file DenseLinAlgPack_DMatrixClass.hpp.

DMatrix::size_type DenseLinAlgPack::DMatrix::cols (  )  const [inline]

Return the number of columns.

Definition at line 1018 of file DenseLinAlgPack_DMatrixClass.hpp.

EOverLap DenseLinAlgPack::DMatrix::overlap ( const DMatrixSlice gms  )  const

Definition at line 155 of file DenseLinAlgPack_DMatrixClass.cpp.

DMatrix::reference DenseLinAlgPack::DMatrix::operator() ( size_type  i,
size_type  j 
) [inline]

Return element at row i, col j (i,j) (1-based).

Definition at line 1025 of file DenseLinAlgPack_DMatrixClass.hpp.

DMatrix::const_reference DenseLinAlgPack::DMatrix::operator() ( size_type  i,
size_type  j 
) const [inline]

Return element at row i, col j (i,j) (1-based).

Definition at line 1032 of file DenseLinAlgPack_DMatrixClass.hpp.

DVectorSlice DenseLinAlgPack::DMatrix::row ( size_type  i  )  [inline]

Return DVectorSlice object representing the ith row (1-based; 1,2,..,this->rows()#).

Definition at line 1041 of file DenseLinAlgPack_DMatrixClass.hpp.

const DVectorSlice DenseLinAlgPack::DMatrix::row ( size_type  i  )  const [inline]

Definition at line 1048 of file DenseLinAlgPack_DMatrixClass.hpp.

DVectorSlice DenseLinAlgPack::DMatrix::col ( size_type  j  )  [inline]

Return DVectorSlice object representing the jth column (1-based; 1,2,..,this->cols()#).

Definition at line 1055 of file DenseLinAlgPack_DMatrixClass.hpp.

const DVectorSlice DenseLinAlgPack::DMatrix::col ( size_type  j  )  const [inline]

Definition at line 1062 of file DenseLinAlgPack_DMatrixClass.hpp.

DVectorSlice DenseLinAlgPack::DMatrix::diag ( difference_type  k = 0  )  [inline]

Definition at line 1069 of file DenseLinAlgPack_DMatrixClass.hpp.

const DVectorSlice DenseLinAlgPack::DMatrix::diag ( difference_type  k = 0  )  const [inline]

Definition at line 1075 of file DenseLinAlgPack_DMatrixClass.hpp.

DMatrixSlice DenseLinAlgPack::DMatrix::operator() ( const Range1D I,
const Range1D J 
) [inline]

Definition at line 1081 of file DenseLinAlgPack_DMatrixClass.hpp.

const DMatrixSlice DenseLinAlgPack::DMatrix::operator() ( const Range1D I,
const Range1D J 
) const [inline]

Definition at line 1089 of file DenseLinAlgPack_DMatrixClass.hpp.

DMatrixSlice DenseLinAlgPack::DMatrix::operator() ( size_type  i1,
size_type  i2,
size_type  j1,
size_type  j2 
) [inline]

Definition at line 1097 of file DenseLinAlgPack_DMatrixClass.hpp.

const DMatrixSlice DenseLinAlgPack::DMatrix::operator() ( size_type  i1,
size_type  i2,
size_type  j1,
size_type  j2 
) const [inline]

Definition at line 1105 of file DenseLinAlgPack_DMatrixClass.hpp.

DMatrixSlice DenseLinAlgPack::DMatrix::operator() (  )  [inline]

Return a DMatrixSlice that represents this entire matrix.

Definition at line 1113 of file DenseLinAlgPack_DMatrixClass.hpp.

const DMatrixSlice DenseLinAlgPack::DMatrix::operator() (  )  const [inline]

Definition at line 1119 of file DenseLinAlgPack_DMatrixClass.hpp.

DenseLinAlgPack::DMatrix::operator DMatrixSlice (  )  [inline]

Definition at line 1128 of file DenseLinAlgPack_DMatrixClass.hpp.

DenseLinAlgPack::DMatrix::operator const DMatrixSlice (  )  const [inline]

Definition at line 1133 of file DenseLinAlgPack_DMatrixClass.hpp.

DMatrix & DenseLinAlgPack::DMatrix::operator= ( value_type  rhs  )  [inline]

Definition at line 1141 of file DenseLinAlgPack_DMatrixClass.hpp.

DMatrix & DenseLinAlgPack::DMatrix::operator= ( const DMatrixSlice gms_rhs  )  [inline]

Definition at line 1155 of file DenseLinAlgPack_DMatrixClass.hpp.

DMatrix & DenseLinAlgPack::DMatrix::operator= ( const DMatrix rhs  )  [inline]

Same as above. Needed to override the default assignment operator.

Definition at line 1148 of file DenseLinAlgPack_DMatrixClass.hpp.

DMatrix::size_type DenseLinAlgPack::DMatrix::max_rows (  )  const [inline]

Return the number of rows in the full matrix. Equivalent to BLAS LDA argument.

Definition at line 1164 of file DenseLinAlgPack_DMatrixClass.hpp.

DMatrix::value_type * DenseLinAlgPack::DMatrix::col_ptr ( size_type  j  )  [inline]

Definition at line 1168 of file DenseLinAlgPack_DMatrixClass.hpp.

const DMatrix::value_type * DenseLinAlgPack::DMatrix::col_ptr ( size_type  j  )  const [inline]

Same as above.

Definition at line 1180 of file DenseLinAlgPack_DMatrixClass.hpp.

void DenseLinAlgPack::DMatrix::validate_row_subscript ( size_type  i  )  const [private]

Definition at line 160 of file DenseLinAlgPack_DMatrixClass.cpp.

void DenseLinAlgPack::DMatrix::validate_col_subscript ( size_type  j  )  const [private]

Definition at line 167 of file DenseLinAlgPack_DMatrixClass.cpp.

DVectorSlice DenseLinAlgPack::DMatrix::p_diag ( difference_type  k  )  const [private]

Definition at line 142 of file DenseLinAlgPack_DMatrixClass.cpp.


Member Data Documentation

std::valarray<value_type> DenseLinAlgPack::DMatrix::v_ [private]

Definition at line 609 of file DenseLinAlgPack_DMatrixClass.hpp.

size_type DenseLinAlgPack::DMatrix::rows_ [private]

Definition at line 610 of file DenseLinAlgPack_DMatrixClass.hpp.


The documentation for this class was generated from the following files:
Generated on Tue Oct 20 12:54:13 2009 for MOOCHO (Single Doxygen Collection) by doxygen 1.4.7