OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Private Attributes | Friends | List of all members
MatrixInput Class Reference

#include <newmat.h>

Public Member Functions

 MatrixInput (const MatrixInput &mi)
 
 MatrixInput (int nx, Real *rx)
 
 ~MatrixInput ()
 
MatrixInput operator<< (Real)
 
MatrixInput operator<< (int f)
 

Private Attributes

int n
 
Realr
 

Friends

class GeneralMatrix
 

Detailed Description

Definition at line 1563 of file newmat.h.

Constructor & Destructor Documentation

◆ MatrixInput() [1/2]

MatrixInput::MatrixInput ( const MatrixInput mi)
inline

Definition at line 1570 of file newmat.h.

1570 : n(mi.n), r(mi.r) {}
Real * r
Definition: newmat.h:1568

◆ MatrixInput() [2/2]

MatrixInput::MatrixInput ( int  nx,
Real rx 
)
inline

Definition at line 1571 of file newmat.h.

1571 : n(nx), r(rx) {}
Real * r
Definition: newmat.h:1568

◆ ~MatrixInput()

MatrixInput::~MatrixInput ( )

Definition at line 434 of file newmat5.cpp.

References n, and REPORT.

435 {
436  REPORT
437  Tracer et("MatrixInput");
438  if (n!=0) Throw(ProgramException("A list of values was too short"));
439 }
#define REPORT
Definition: newmat5.cpp:20

Member Function Documentation

◆ operator<<() [1/2]

MatrixInput MatrixInput::operator<< ( Real  f)

Definition at line 391 of file newmat5.cpp.

References n, and REPORT.

392 {
393  REPORT
394  Tracer et("MatrixInput");
395  if (n<=0) Throw(ProgramException("List of values too long"));
396  *r = f; int n1 = n-1; n=0; // n=0 so we won't trigger exception
397  return MatrixInput(n1, r+1);
398 }
Real * r
Definition: newmat.h:1568
#define REPORT
Definition: newmat5.cpp:20
MatrixInput(const MatrixInput &mi)
Definition: newmat.h:1570

◆ operator<<() [2/2]

MatrixInput MatrixInput::operator<< ( int  f)
inline

Definition at line 1776 of file newmat.h.

1776 { return *this << (Real)f; }
double Real
Definition: include.h:57

Friends And Related Function Documentation

◆ GeneralMatrix

friend class GeneralMatrix
friend

Definition at line 1575 of file newmat.h.

Member Data Documentation

◆ n

int MatrixInput::n
private

Definition at line 1567 of file newmat.h.

◆ r

Real* MatrixInput::r
private

Definition at line 1568 of file newmat.h.


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