OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Macros | Functions
newmatio.h File Reference
#include <ossim/matrix/newmat.h>
#include <iostream>

Go to the source code of this file.

Macros

#define NEWMATIO_LIB   0
 

Functions

OSSIM_DLL std::ostream & operator<< (std::ostream &, const BaseMatrix &)
 
OSSIM_DLL std::ostream & operator<< (std::ostream &, const GeneralMatrix &)
 

Macro Definition Documentation

◆ NEWMATIO_LIB

#define NEWMATIO_LIB   0

Definition at line 6 of file newmatio.h.

Function Documentation

◆ operator<<() [1/2]

OSSIM_DLL std::ostream& operator<< ( std::ostream &  ,
const BaseMatrix  
)

Definition at line 31 of file newmat9.cpp.

References GeneralMatrix::Evaluate(), and GeneralMatrix::tDelete().

32 {
33  GeneralMatrix* gm = ((BaseMatrix&)X).Evaluate(); operator<<(s, *gm);
34  gm->tDelete(); return s;
35 }
void tDelete()
Definition: newmat4.cpp:535
ostream & operator<<(ostream &s, const BaseMatrix &X)
Definition: newmat9.cpp:31
GeneralMatrix * Evaluate(MatrixType mt=MatrixTypeUnSp)
Definition: newmat5.cpp:79

◆ operator<<() [2/2]

OSSIM_DLL std::ostream& operator<< ( std::ostream &  ,
const GeneralMatrix  
)

Definition at line 38 of file newmat9.cpp.

References MatrixRowCol::data, LoadOnEntry, MatrixRow::Next(), GeneralMatrix::Nrows(), MatrixRowCol::skip, and MatrixRowCol::storage.

39 {
41  int w = s.width(); int nr = X.Nrows();
42  std::ios_base::fmtflags f = s.flags();
43  s.setf(ios::fixed, ios::floatfield);
44  for (int i=1; i<=nr; i++)
45  {
46  int skip = mr.skip; int storage = mr.storage;
47  Real* store = mr.data; skip *= w+1;
48  while (skip--) s << " ";
49  while (storage--) { s.width(w); s << *store++ << " "; }
50 // while (storage--) s << setw(w) << *store++ << " ";
51  mr.Next(); s << "\n";
52  }
53  s << flush; s.flags(f);
54  return s;
55 }
double Real
Definition: include.h:57