IMS2  Pre-Alpha
An Orbiter add-on to allow on-runtime construction of spacecraft from predefined modules
IMS_Matrix< T > Class Template Reference

generalized matrix helper class useful for where the Orbiter API stops More...

Public Member Functions

 IMS_Matrix (unsigned int n, unsigned int m)
 
 IMS_Matrix (unsigned int n, unsigned int m, std::initializer_list< T > init)
 
unsigned int numRows () const
 
unsigned int numCols () const
 
std::string toString () const
 
const IMS_Matrix< T > makePositive () const
 
const IMS_Matrix< T > transpose () const
 
const IMS_Matrix< T > augment_right (const IMS_Matrix< T > &rhs) const
 
const IMS_Matrix< T > gaussianEliminate () const
 
IMS_Matrix< T > & swapRowOp (unsigned int firstRow, unsigned int secondRow)
 
IMS_Matrix< T > & replacementRowOp (unsigned int firstRow, unsigned int secondRow, T scaleFactor)
 
IMS_Matrix< T > & scaleRowOp (unsigned int row, T scaleFactor)
 
IMS_Matrix< T > & operator= (const IMS_Matrix< T > &rhs)
 
IMS_Matrix< T > & operator+= (const IMS_Matrix< T > &rhs)
 
IMS_Matrix< T > & operator-= (const IMS_Matrix< T > &rhs)
 
IMS_Matrix< T > & operator*= (const IMS_Matrix< T > &rhs)
 
const IMS_Matrix< T > operator* (const IMS_Matrix< T > &rhs) const
 
bool operator== (const IMS_Matrix< T > &other) const
 
bool operator!= (const IMS_Matrix< T > &other) const
 
operator() (unsigned int x, unsigned int y) const
 
T & operator() (unsigned int x, unsigned int y)
 

Private Attributes

unsigned int rows
 
unsigned int cols
 
std::vector< T > data
 

Detailed Description

template<typename T>
class IMS_Matrix< T >

generalized matrix helper class useful for where the Orbiter API stops

Todo:
figure out what this stuff does and document it.
Author
meson800

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