MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
mh.cc File Reference
#include "mbconfig.h"
#include <cstring>
#include <iostream>
#include <iomanip>
#include <vector>
#include "solman.h"
#include "submat.h"
#include "matvec3.h"
#include "ac/lapack.h"
Include dependency graph for mh.cc:

Go to the source code of this file.

Macros

#define HAVE_CONDITION_NUMBER   ((defined(HAVE_DGETRF_) || defined(HAVE_DGETRF)) && (defined(HAVE_DGECON_) || defined(HAVE_DGECON)))
 

Functions

std::ostream & operator<< (std::ostream &out, const MatrixHandler &MH)
 

Macro Definition Documentation

#define HAVE_CONDITION_NUMBER   ((defined(HAVE_DGETRF_) || defined(HAVE_DGETRF)) && (defined(HAVE_DGECON_) || defined(HAVE_DGECON)))

Definition at line 393 of file mh.cc.

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const MatrixHandler MH 
)

Definition at line 524 of file mh.cc.

References MatrixHandler::iGetNumCols(), and MatrixHandler::iGetNumRows().

525 {
526  integer nr = MH.iGetNumRows();
527  integer nc = MH.iGetNumCols();
528 
529  for (integer i = 1; i <= nr; i++) {
530  for (integer j = 1; j <= nc; j++) {
531  out << std::setw(16) << MH(i, j) << ' ';
532  }
533  out << std::endl;
534  }
535 
536  return out;
537 }
virtual integer iGetNumCols(void) const =0
long int integer
Definition: colamd.c:51
virtual integer iGetNumRows(void) const =0

Here is the call graph for this function: