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< RealVector
 A real-valued vector with algebraic operations.
 
typedef utl::matrix< RealMatrix
 A real-valued matrix with algebraic operations.
 
typedef utl::matrix3d< RealMatrix3D
 A real-valued three-dimensional matrix with algebraic operations.
 
typedef utl::matrix4d< RealMatrix4D
 A real-valued four-dimensional matrix with algebraic operations.
 
typedef std::vector< RealRealArray
 A real-valued array without algebraic operations.
 
typedef std::vector< RealArrayReal2DMat
 A real-valued two-dimensional array without algebraic operations.
 
typedef std::vector< Real2DMatReal3DMat
 A real-valued three-dimensional array without algebraic operations.
 
typedef std::vector< VectorVectors
 An array of real-valued vectors with algebraic operations.
 
typedef std::vector< MatrixMatrices
 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_DEBUGlevel.
 

Detailed Description

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

Date
Oct 1 2007
Author
Knut Morten Okstad / SINTEF