MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
grad::TabularMatrixView< T, N_rows, N_cols > Class Template Reference

#include <matvec.h>

Collaboration diagram for grad::TabularMatrixView< T, N_rows, N_cols >:

Public Member Functions

 TabularMatrixView (const Matrix< T, N_rows, N_cols > &A, int iColWidth)
 
void Print (std::ostream &os) const
 

Private Attributes

const Matrix< T, N_rows, N_cols > & A
 
const int iColWidth
 

Detailed Description

template<typename T, index_type N_rows, index_type N_cols>
class grad::TabularMatrixView< T, N_rows, N_cols >

Definition at line 2989 of file matvec.h.

Constructor & Destructor Documentation

template<typename T, index_type N_rows, index_type N_cols>
grad::TabularMatrixView< T, N_rows, N_cols >::TabularMatrixView ( const Matrix< T, N_rows, N_cols > &  A,
int  iColWidth 
)
inline

Definition at line 2991 of file matvec.h.

2992  :A(A), iColWidth(iColWidth) {
2993 
2994  }
const Matrix< T, N_rows, N_cols > & A
Definition: matvec.h:3006

Member Function Documentation

template<typename T, index_type N_rows, index_type N_cols>
void grad::TabularMatrixView< T, N_rows, N_cols >::Print ( std::ostream &  os) const
inline

Definition at line 2996 of file matvec.h.

2996  {
2997  for (index_type i = 1; i <= A.iGetNumRows(); ++i) {
2998  for (index_type j = 1; j <= A.iGetNumCols(); ++j) {
2999  os << std::setw(iColWidth) << A(i, j) << ' ';
3000  }
3001  os << std::endl;
3002  }
3003  }
integer index_type
Definition: gradient.h:104
const Matrix< T, N_rows, N_cols > & A
Definition: matvec.h:3006

Member Data Documentation

template<typename T, index_type N_rows, index_type N_cols>
const Matrix<T, N_rows, N_cols>& grad::TabularMatrixView< T, N_rows, N_cols >::A
private

Definition at line 3006 of file matvec.h.

template<typename T, index_type N_rows, index_type N_cols>
const int grad::TabularMatrixView< T, N_rows, N_cols >::iColWidth
private

Definition at line 3007 of file matvec.h.


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