Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
includeLinks/Matrix3D.hpp File Reference
#include <iostream>
#include <sstream>
#include <cstdlib>
#include "Mesquite.hpp"
#include "Vector3D.hpp"
Include dependency graph for includeLinks/Matrix3D.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Matrix3D
 3*3 Matric class, row-oriented, 0-based [i][j] indexing. More...
 

Namespaces

 Mesquite
 Used to hold the error state and return it to the application.
 

Functions

msq_stdio::ostream & operator<< (msq_stdio::ostream &s, const Matrix3D &A)
 
msq_stdio::istream & operator>> (msq_stdio::istream &s, Matrix3D &A)
 
bool operator== (const Matrix3D &lhs, const Matrix3D &rhs)
 
bool operator!= (const Matrix3D &lhs, const Matrix3D &rhs)
 
const Matrix3D operator+ (const Matrix3D &A, const Matrix3D &B)
 
const Matrix3D operator- (const Matrix3D &A, const Matrix3D &B)
 
const Matrix3D mult_element (const Matrix3D &A, const Matrix3D &B)
 Multiplies entry by entry. This is NOT a matrix multiplication. More...
 
double Frobenius_2 (const Matrix3D &A)
 Return the square of the Frobenius norm of A, i.e. sum (diag (A' * A)) More...
 
Matrix3D transpose (const Matrix3D &A)
 
const Matrix3D operator* (const Matrix3D &A, const Matrix3D &B)
 
const Matrix3D operator* (const double &s, const Matrix3D &A)
 friend function to allow for commutatative property of scalar mulitplication. More...
 
int matmult (Matrix3D &C, const Matrix3D &A, const Matrix3D &B)
 $ C = A \times B $ More...
 
const Vector3D operator* (const Matrix3D &A, const Vector3D &x)
 Computes $ A v $ . More...
 
const Vector3D operator* (const Vector3D &x, const Matrix3D &A)
 Computes $ v^T A $ . More...
 
void eqAx (Vector3D &v, const Matrix3D &A, const Vector3D &x)
 
void plusEqAx (Vector3D &v, const Matrix3D &A, const Vector3D &x)
 
void plusEqTransAx (Vector3D &v, const Matrix3D &A, const Vector3D &x)
 
void plusEqaA (Matrix3D &B, const double a, const Matrix3D &A)
 
double det (const Matrix3D &A)
 
void inv (Matrix3D &Ainv, const Matrix3D &A)
 
void timesInvA (Matrix3D &B, const Matrix3D &A)
 
void QR (Matrix3D &Q, Matrix3D &R, const Matrix3D &A)