DenseLinAlgPack::DMatrixSlice Class Reference

More...

#include <DenseLinAlgPack_DMatrixClass.hpp>

List of all members.
 DMatrixSlice ()
 DMatrixSlice (value_type *ptr, size_type size, size_type max_rows, size_type rows, size_type cols)
 DMatrixSlice (DMatrixSlice &gms, const Range1D &I, const Range1D &J)
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) (throws std::out_of_range if i, j are out of bounds).
const_reference operator() (size_type i, size_type j) const
 Return element at row i, col j (i,j) (1-based) (throws std::out_of_range if i, j are out of bounds).
DVectorSlice row (size_type i)
 Return DVectorSlice object representing the ith row (1-based; 1,2,..,this->rows()#, or throw std::out_of_range).
const DVectorSlice row (size_type i) const
 Same as above.
DVectorSlice col (size_type j)
 Return DVectorSlice object representing the jth column (1-based; 1,2,..,this->cols()#, or throw std::out_of_range).
const DVectorSlice col (size_type j) const
 Same as above.
DVectorSlice diag (difference_type k=0)
const DVectorSlice diag (difference_type k=0) const
 Same as above.
DMatrixSlice operator() (const Range1D &I, const Range1D &J)
const DMatrixSlice operator() (const Range1D &I, const Range1D &J) const
 Same as above.
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
 Same as above.
DMatrixSliceoperator & ()
 Allow the address to be taken of an rvalue of this object.
const DMatrixSliceoperator & () const
 
DMatrixSliceoperator() ()
 Return reference of this. Included for iniformity with DMatrix.
const DMatrixSliceoperator() () const
 Same as above.
DMatrixSliceoperator= (value_type alpha)
 
DMatrixSliceoperator= (const DMatrixSlice &gms_rhs)
 
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

Public Member Functions

void bind (DMatrixSlice gms)
 

Private Member Functions

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

Private Attributes

value_typeptr_
size_type max_rows_
size_type rows_
size_type cols_


Detailed Description

Definition at line 63 of file DenseLinAlgPack_DMatrixClass.hpp.


Member Typedef Documentation

typedef DenseLinAlgPack::value_type DenseLinAlgPack::DMatrixSlice::value_type

Definition at line 79 of file DenseLinAlgPack_DMatrixClass.hpp.

typedef DenseLinAlgPack::size_type DenseLinAlgPack::DMatrixSlice::size_type

Definition at line 80 of file DenseLinAlgPack_DMatrixClass.hpp.

typedef ptrdiff_t DenseLinAlgPack::DMatrixSlice::difference_type

Definition at line 81 of file DenseLinAlgPack_DMatrixClass.hpp.

typedef value_type& DenseLinAlgPack::DMatrixSlice::reference

Definition at line 82 of file DenseLinAlgPack_DMatrixClass.hpp.

typedef const value_type& DenseLinAlgPack::DMatrixSlice::const_reference

Definition at line 83 of file DenseLinAlgPack_DMatrixClass.hpp.


Constructor & Destructor Documentation

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

Definition at line 774 of file DenseLinAlgPack_DMatrixClass.hpp.

DenseLinAlgPack::DMatrixSlice::DMatrixSlice ( value_type ptr,
size_type  size,
size_type  max_rows,
size_type  rows,
size_type  cols 
) [inline]

Definition at line 779 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Definition at line 787 of file DenseLinAlgPack_DMatrixClass.hpp.


Member Function Documentation

void DenseLinAlgPack::DMatrixSlice::bind ( DMatrixSlice  gms  )  [inline]

Definition at line 799 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Return the number of rows.

Definition at line 809 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Return the number of columns.

Definition at line 814 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Definition at line 52 of file DenseLinAlgPack_DMatrixClass.cpp.

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

Return element at row i, col j (i,j) (1-based) (throws std::out_of_range if i, j are out of bounds).

Definition at line 823 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Return element at row i, col j (i,j) (1-based) (throws std::out_of_range if i, j are out of bounds).

Definition at line 831 of file DenseLinAlgPack_DMatrixClass.hpp.

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

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

Definition at line 841 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Same as above.

Definition at line 847 of file DenseLinAlgPack_DMatrixClass.hpp.

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

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

Definition at line 853 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Same as above.

Definition at line 859 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Definition at line 865 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Same as above.

Definition at line 870 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Definition at line 875 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Same as above.

Definition at line 880 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Definition at line 886 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Same as above.

Definition at line 893 of file DenseLinAlgPack_DMatrixClass.hpp.

DMatrixSlice* DenseLinAlgPack::DMatrixSlice::operator & (  )  [inline]

Allow the address to be taken of an rvalue of this object.

Definition at line 273 of file DenseLinAlgPack_DMatrixClass.hpp.

const DMatrixSlice* DenseLinAlgPack::DMatrixSlice::operator & (  )  const [inline]

Definition at line 277 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Return reference of this. Included for iniformity with DMatrix.

Definition at line 901 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Same as above.

Definition at line 906 of file DenseLinAlgPack_DMatrixClass.hpp.

DMatrixSlice & DenseLinAlgPack::DMatrixSlice::operator= ( value_type  alpha  )  [inline]

Definition at line 913 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Definition at line 919 of file DenseLinAlgPack_DMatrixClass.hpp.

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

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

Definition at line 927 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Definition at line 931 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Same as above.

Definition at line 938 of file DenseLinAlgPack_DMatrixClass.hpp.

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

Definition at line 111 of file DenseLinAlgPack_DMatrixClass.cpp.

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

Definition at line 120 of file DenseLinAlgPack_DMatrixClass.cpp.

void DenseLinAlgPack::DMatrixSlice::validate_setup ( size_type  size  )  const [private]

Definition at line 129 of file DenseLinAlgPack_DMatrixClass.cpp.

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

Definition at line 39 of file DenseLinAlgPack_DMatrixClass.cpp.


Member Data Documentation

value_type* DenseLinAlgPack::DMatrixSlice::ptr_ [private]

Definition at line 337 of file DenseLinAlgPack_DMatrixClass.hpp.

size_type DenseLinAlgPack::DMatrixSlice::max_rows_ [private]

Definition at line 338 of file DenseLinAlgPack_DMatrixClass.hpp.

size_type DenseLinAlgPack::DMatrixSlice::rows_ [private]

Definition at line 338 of file DenseLinAlgPack_DMatrixClass.hpp.

size_type DenseLinAlgPack::DMatrixSlice::cols_ [private]

Definition at line 338 of file DenseLinAlgPack_DMatrixClass.hpp.


The documentation for this class was generated from the following files:
Generated on Wed May 12 21:57:17 2010 for MOOCHO (Single Doxygen Collection) by  doxygen 1.4.7