# Testing Compatibility [Linear Algebra library, Non-member C-style functions]

Collaboration diagram for Testing Compatibility:

Methods that test whether a pair or triple of linear algebraic objects can be combined mathematically. More...

## Functions

template<typename T>
bool LinearlyCompatible (const Vector< T > &v1, const Vector< T > &v2)
Determines whether two vectors are linearly compatible, e.g. `v1 = v2`.
template<typename T>
bool LinearlyCompatible (const Vector< T > &result, const Vector< T > &v1, const Vector< T > &v2)
Determines whether three vectors are linearly compatible, e.g. `result = v1 + v2`.
template<typename T>
bool LinearlyCompatible (const Matrix< T > &m1, const Matrix< T > &m2)
Determines whether two matrices are linearly compatible, e.g. `m1 = m2`.
template<typename T>
bool LinearlyCompatible (const Matrix< T > &result, const Matrix< T > &m1, const Matrix< T > &m2)
Determines whether three matrices are linearly compatible, e.g. `result = m1 + m2`.
template<typename T>
bool ProductCompatible (const Matrix< T > &m1, const Matrix< T > &m2)
Determines whether two matrices are multiplicatively compatible, e.g. `(m1 * m2)`.
template<typename T>
bool ProductCompatible (const Matrix< T > &result, const Matrix< T > &m1, const Matrix< T > &m2)
Determines whether three matrices are multiplicatively compatible, e.g. `result = m1 * m2`.
template<typename T>
bool ProductCompatible (const Matrix< T > &m, const Vector< T > &v)
Determines whether a matrix and a vector are multiplicatively compatible, e.g. `(m * v)`.
template<typename T>
bool ProductCompatible (const Vector< T > &v, const Matrix< T > &m)
Determines whether a vector and a matrix are multiplicatively compatible, e.g. `(v * m)`.
template<typename T>
bool ProductCompatible (const Vector< T > &result, const Matrix< T > &m, const Vector< T > &v)
Determines whether `result = m * v` is defined.
template<typename T>
bool ProductCompatible (const Vector< T > &result, const Vector< T > &v, const Matrix< T > &m)
Determines whether `result = v * m` is defined.
template<typename T>
bool ProductCompatible (const Matrix< T > &result, const Vector< T > &v1, const Vector< T > &v2)
Determines whether the outer product of two vectors is linearly compatible with a matrix, e.g. `result = v x v`.

## Detailed Description

Methods that test whether a pair or triple of linear algebraic objects can be combined mathematically.

Generated on Wed Jun 14 22:25:31 2006 for linalg by  1.4.4