#include <iostream>
#include <string>
#include <valarray>
#include <vector>
#include "CoreEnums.h"
#include "GenericMatrix.h"
Go to the source code of this file.
|
| class | DenseMatrix< T > |
| | Concrete implemenatation of a matrix class representing a dense matrix. Offers basic access and element wise arithmetic functionality and mathematical matrix product. More...
|
| |
|
| template<typename T > |
| DenseMatrix< T > | operator+ (const DenseMatrix< T > &dm_1, const DenseMatrix< T > &dm_2) |
| | Overload of the binary + operator.
|
| |
| template<typename T > |
| DenseMatrix< T > | operator+ (const DenseMatrix< T > &dense_matrix, const T value) |
| | Overload of the binary + operator.
|
| |
| template<typename T > |
| DenseMatrix< T > | operator+ (const T value, const DenseMatrix< T > &dense_matrix) |
| | Overload of the binary + operator. Needed for symmetry of call.
|
| |
| template<typename T > |
| DenseMatrix< T > | operator- (const DenseMatrix< T > &dm_1, const DenseMatrix< T > &dm_2) |
| | Overload of the binary - operator.
|
| |
| template<typename T > |
| DenseMatrix< T > | operator- (const DenseMatrix< T > &dense_matrix, const T value) |
| | Overload of the binary - operator.
|
| |
| template<typename T > |
| DenseMatrix< T > | operator- (const T value, const DenseMatrix< T > &dense_matrix) |
| | Overload of the binary - operator. Needed for symmetry of call.
|
| |
| template<typename T > |
| DenseMatrix< T > | operator* (const DenseMatrix< T > &dm_1, const DenseMatrix< T > &dm_2) |
| | Overload of the binary * operator. Does matrix multiplication/matrix product.
|
| |
| template<typename T > |
| DenseMatrix< T > | operator* (const DenseMatrix< T > &dense_matrix, const T value) |
| | Overload of the binary * operator.
|
| |
| template<typename T > |
| DenseMatrix< T > | operator* (const T value, const DenseMatrix< T > &dense_matrix) |
| | Overload of the binary * operator. Needed for symmetry of call.
|
| |
| template<typename T > |
| DenseMatrix< T > | operator/ (const DenseMatrix< T > &dm_1, const DenseMatrix< T > &dm_2) |
| | Overload of the binary / operator.
|
| |
| template<typename T > |
| DenseMatrix< T > | operator/ (const DenseMatrix< T > &dense_matrix, const T value) |
| | Overload of the binary / operator.
|
| |
| template<typename T > |
| DenseMatrix< T > | operator/ (const T value, const DenseMatrix< T > &dense_matrix) |
| | Overload of the binary / operator.
|
| |
| template<typename T > |
| std::ostream & | operator<< (std::ostream &out, const DenseMatrix< T > &dense_matrix) |
| | Overload of the << operator.
|
| |
◆ operator*() [1/3]
Overload of the binary * operator.
- Parameters
-
| dense_matrix | The matrix to multiply with the value. |
| value | The value to multiply the matrix with. |
◆ operator*() [2/3]
Overload of the binary * operator. Does matrix multiplication/matrix product.
- Parameters
-
| dm_1 | (const DenseMatrix<T>&): The left matrix. |
| dm_2 | (const DenseMatrix<T>&): The right matrix. |
Returns: (DenseMatrix<T>) The result of the matrix multiplication.
◆ operator*() [3/3]
Overload of the binary * operator. Needed for symmetry of call.
- Parameters
-
| value | The value to multiply the matrix with. |
| dense_matrix | The matrix to multiply with the value. |
Returns: (DenseMatrix<T>) The result of the element-wise multiplication.
◆ operator+() [1/3]
Overload of the binary + operator.
- Parameters
-
| dense_matrix | The matrix to add together. |
| value | The value to add onto the matrix. |
◆ operator+() [2/3]
Overload of the binary + operator.
- Parameters
-
| dm_1 | The first matrix to add together. |
| dm_2 | The second matrix to add together. |
◆ operator+() [3/3]
Overload of the binary + operator. Needed for symmetry of call.
- Parameters
-
| value | The value to add onto the matrix. |
| dense_matrix | The matrix to add together. |
◆ operator-() [1/3]
Overload of the binary - operator.
- Parameters
-
| dense_matrix | The matrix to subtract the value from. |
| value | The value to subtract from the matrix. |
◆ operator-() [2/3]
Overload of the binary - operator.
- Parameters
-
| dm_1 | The first matrix to subtract from each other. |
| dm_2 | The second matrix subtract from each other. |
◆ operator-() [3/3]
Overload of the binary - operator. Needed for symmetry of call.
- Parameters
-
| value | The value to subtract the matrix elements from. |
| dense_matrix | The matrix which is subtracted from the value. |
◆ operator/() [1/3]
Overload of the binary / operator.
- Parameters
-
| dense_matrix | The matrix acting as the numerator(s). |
| value | The value acting as the denominator. |
◆ operator/() [2/3]
Overload of the binary / operator.
- Parameters
-
| dm_1 | The numerator matrix. |
| dm_2 | The denominator matrix. |
◆ operator/() [3/3]
Overload of the binary / operator.
- Parameters
-
| value | The value acting as the numerator. |
| dense_matrix | The matrix acting as the denominator(s). |
◆ operator<<()
Overload of the << operator.
- Parameters
-
| out | The outstream. |
| dense_matrix | The matrix to be printed. |