JX Application Framework
Loading...
Searching...
No Matches
Functions
JMatrix.cpp File Reference
#include "JMatrix.h"
#include "JVector.h"
#include "jStreamUtil.h"
#include "jMath.h"
#include <string.h>
#include <stdarg.h>
#include "jAssert.h"
Include dependency graph for JMatrix.cpp:

Functions

JMatrix operator+ (const JMatrix &mx1, const JMatrix &mx2)
 
JMatrix operator- (const JMatrix &mx1, const JMatrix &mx2)
 
JMatrix operator* (const JMatrix &mx, const JFloat s)
 
JMatrix operator* (const JFloat s, const JMatrix &mx)
 
JMatrix operator/ (const JMatrix &mx, const JFloat s)
 
JMatrix operator* (const JMatrix &mx1, const JMatrix &mx2)
 
JMatrix operator* (const JMatrix &mx, const JVector &v)
 
JMatrix JIdentityMatrix (const JSize dimCount)
 
bool operator== (const JMatrix &mx1, const JMatrix &mx2)
 
std::istream & operator>> (std::istream &input, JMatrix &aMatrix)
 
std::ostream & operator<< (std::ostream &output, const JMatrix &aMatrix)
 
bool JGaussianElimination (const JMatrix &A, const JVector &b, JVector *x)
 
bool JGaussianElimination (const JMatrix &A, const JMatrix &b, JMatrix *x)
 
bool JGaussianElimination (JMatrix *A, JMatrix *x)
 

Function Documentation

◆ JGaussianElimination() [1/3]

bool JGaussianElimination ( const JMatrix A,
const JMatrix b,
JMatrix x 
)

◆ JGaussianElimination() [2/3]

bool JGaussianElimination ( const JMatrix A,
const JVector b,
JVector x 
)

Returns true if we were able to perform Gaussian elimination on A|b to reduce A to the identity. The result of b is stored in x.

A does not have to be square. A, b, x must all have the same number of rows. b and x must have the same number of columns.

◆ JGaussianElimination() [3/3]

bool JGaussianElimination ( JMatrix A,
JMatrix x 
)

Returns true if we were able to perform Gaussian elimination on A|x. A and x are both modified. If the process fails, the partial results are returned.

A does not have to be square. A and x must all have the same number of rows.

◆ JIdentityMatrix()

JMatrix JIdentityMatrix ( const JSize  dimCount)

◆ operator*() [1/4]

JMatrix operator* ( const JFloat  s,
const JMatrix mx 
)

◆ operator*() [2/4]

JMatrix operator* ( const JMatrix mx,
const JFloat  s 
)

◆ operator*() [3/4]

JMatrix operator* ( const JMatrix mx,
const JVector v 
)

◆ operator*() [4/4]

JMatrix operator* ( const JMatrix mx1,
const JMatrix mx2 
)

◆ operator+()

JMatrix operator+ ( const JMatrix mx1,
const JMatrix mx2 
)

◆ operator-()

JMatrix operator- ( const JMatrix mx1,
const JMatrix mx2 
)

◆ operator/()

JMatrix operator/ ( const JMatrix mx,
const JFloat  s 
)

◆ operator<<()

std::ostream & operator<< ( std::ostream &  output,
const JMatrix aMatrix 
)

◆ operator==()

bool operator== ( const JMatrix mx1,
const JMatrix mx2 
)

◆ operator>>()

std::istream & operator>> ( std::istream &  input,
JMatrix aMatrix 
)