IFEM  90A354
Namespaces | Typedefs | Functions
MatVec.h File Reference

Global algebraic operations on index 1-based matrices and vectors. More...

#include "matrixnd.h"
Include dependency graph for MatVec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 utl
 General utility classes and functions.
 

Typedefs

typedef utl::vector< Real > Vector
 A real-valued vector with algebraic operations.
 
typedef utl::matrix< Real > Matrix
 A real-valued matrix with algebraic operations.
 
typedef utl::matrix3d< Real > Matrix3D
 A real-valued three-dimensional matrix with algebraic operations.
 
typedef utl::matrix4d< Real > Matrix4D
 A real-valued four-dimensional matrix with algebraic operations.
 
typedef std::vector< Real > RealArray
 A real-valued array without algebraic operations.
 
typedef std::vector< RealArray > Real2DMat
 A real-valued two-dimensional array without algebraic operations.
 
typedef std::vector< Real2DMat > Real3DMat
 A real-valued three-dimensional array without algebraic operations.
 
typedef std::vector< Vector > Vectors
 An array of real-valued vectors with algebraic operations.
 
typedef std::vector< Matrix > Matrices
 An array of real-valued matrices with algebraic operations.
 

Functions

Vector utl::operator* (const Vector &X, Real c)
 Multiplication of a vector and a scalar. More...
 
Vector utl::operator* (Real c, const Vector &X)
 Multiplication of a scalar and a vector. More...
 
Vector utl::operator/ (const Vector &X, Real d)
 Division of a vector by a scalar. More...
 
Vector utl::operator+ (const Vector &X, const Vector &Y)
 Addition of two vectors. More...
 
Vector utl::operator- (const Vector &X, const Vector &Y)
 Subtraction of two vectors. More...
 
Matrix utl::operator* (const Matrix &A, Real c)
 Multiplication of a matrix and a scalar. More...
 
Matrix utl::operator* (Real c, const Matrix &A)
 Multiplication of a scalar and a matrix. More...
 
Real utl::operator* (const Vector &X, const Vector &Y)
 Dot product of two vectors. More...
 
RealArray utl::operator* (const Matrix &A, const Vector &X)
 Multiplication of a matrix and a vector. More...
 
RealArray utl::operator* (const Vector &X, const Matrix &A)
 Multiplication of a vector and a matrix. More...
 
Matrix utl::operator* (const Matrix &A, const Matrix &B)
 Multiplication of two matrices. More...
 
bool utl::transform (Matrix &A, const Matrix &Tn)
 Congruence transformation of a symmetric matrix. More...
 
bool utl::transform (Vector &V, const Matrix &Tn, bool transpose=false)
 Congruence transformation of a vector. More...
 
bool utl::invert (Matrix &A)
 Inverts the square matrix A.
 
bool utl::solve (Matrix &A, RealArray &b, std::vector< int > *iPivot=nullptr)
 Solves the linear system of equations \( {\bf A x} = {\bf b} \). More...
 
void utl::debugPrint (const char *label, const Vector &V, int level=2)
 Debug print of given vector V, if SP_DEBUG ≥ level.
 

Detailed Description

Global algebraic operations on index 1-based matrices and vectors.

Date
Oct 1 2007
Author
Knut Morten Okstad / SINTEF