Matrix.cc File Reference
#include "Matrix.h"
#include "ExtendedMath.h"

Functions

std::ostream & operator<< (std::ostream &os, const Matrix3D &A)
 
std::istream & operator>> (std::istream &is, Matrix3D &A)
 

Function Documentation

◆ operator<<()

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

Adds all elements of a matrix to an ostream

Parameters
[out]osoutput stream
[in]A3D matrix
Returns
output stream with matrix elements added
196 {
197  os << A.XX << ' ' << A.XY << ' ' << A.XZ << ' '
198  << A.YX << ' ' << A.YY << ' ' << A.YZ << ' '
199  << A.ZX << ' ' << A.ZY << ' ' << A.ZZ;
200  return os;
201 }
The matrix class, also used for vectors and row-vectors.
Definition: Eigen/Eigen/src/Core/Matrix.h:186

◆ operator>>()

std::istream& operator>> ( std::istream &  is,
Matrix3D A 
)

Reads the elements of a matrix from an istream

Parameters
[in,out]isinput stream
[out]A3D matrix
Returns
is input stream after the read operation.
210 {
211  is >> A.XX >> A.XY >> A.XZ >> A.YX >> A.YY >> A.YZ >> A.ZX >> A.ZY >> A.ZZ;
212  return is;
213 }