COPASI API  4.16.103
Functions
CLinkMatrix.cpp File Reference
#include <cmath>
#include "copasi.h"
#include "CLinkMatrix.h"
#include "CCopasiVector.h"
#include "lapack/blaswrap.h"
#include "lapack/lapackwrap.h"
Include dependency graph for CLinkMatrix.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CLinkMatrixView &A)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CLinkMatrixView A 
)

Output stream operator

Parameters
ostream& os
constCLinkMatrixView & A
Returns
ostream & os

Definition at line 616 of file CLinkMatrix.cpp.

References CLinkMatrixView::numCols(), and CLinkMatrixView::numRows().

618 {
619  size_t i, imax = A.numRows();
620  size_t j, jmax = A.numCols();
621  os << "Matrix(" << imax << "x" << jmax << ")" << std::endl;
622 
623  for (i = 0; i < imax; i++)
624  {
625  for (j = 0; j < jmax; j++)
626  os << "\t" << A(i, j);
627 
628  os << std::endl;
629  }
630 
631  return os;
632 }
size_t numCols() const
size_t numRows() const