#include "Random.h"
#include "vec/vec3.h"
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <initializer_list>
#include <iostream>
#include <memory>
#include <type_traits>
#include <signal.h>
Go to the source code of this file.
|
template<typename T > |
Matrix< T > | operator+ (const Matrix< T > &lhs, const Matrix< T > &rhs) |
|
template<typename T > |
Matrix< T > | operator- (const Matrix< T > &lhs, const Matrix< T > &rhs) |
|
template<typename T , typename U > |
Matrix< T > | operator/ (U lhs, const Matrix< T > &rhs) |
|
template<typename T , typename U > |
Matrix< T > | operator/ (const Matrix< T > &lhs, const U &rhs) |
|
template<typename T > |
Matrix< T > | operator/ (const Matrix< T > &lhs, const Matrix< T > &rhs) |
|
template<typename T , typename U > |
Matrix< T > | operator* (const Matrix< T > &lhs, const U &rhs) |
|
template<typename T , typename U > |
Matrix< T > | operator* (U lambda, const Matrix< T > &A) |
|
template<typename T > |
Matrix< T > | operator* (const Matrix< T > &lhs, const Matrix< T > &rhs) |
|
◆ operator*() [1/3]
Regular Matrix-Matrix multiplication Calculates LHS * RHS
- Parameters
-
- Returns
- Rows x C result matrix
◆ operator*() [2/3]
template<typename T , typename U >
Matrix< T > operator* |
( |
const Matrix< T > & |
lhs, |
|
|
const U & |
rhs |
|
) |
| |
|
inline |
Simple Matrix scalar multiplication
- Parameters
-
- Returns
- scaled matrix
◆ operator*() [3/3]
template<typename T , typename U >
Simple Matrix scalar multiplication
- Parameters
-
- Returns
- scaled matrix lambda * A = B with B(i, j) = lambda * A(i, j)
◆ operator+()
Extra operators Matrix-Addition
- Template Parameters
-
- Parameters
-
- Returns
◆ operator-()
Matrix-Subtraction
- Template Parameters
-
- Parameters
-
- Returns
◆ operator/() [1/3]
Matrix-Matrix division, element wise division if rhs is matrix. Row/Column-wise division for given rhs vector.
rhs matrix: lhs: N x M rhs: M x T result: N x T
rhs vector: lhs: N x M rhs: 1 x M or M x 1 result: N x M
- Template Parameters
-
value | type of matrix elements |
- Parameters
-
lhs | matrix divident |
rhs | matrix divisor @retrun matrix in dimension of given |
◆ operator/() [2/3]
template<typename T , typename U >
Matrix< T > operator/ |
( |
const Matrix< T > & |
lhs, |
|
|
const U & |
rhs |
|
) |
| |
|
inline |
Element wise division of matrix elements with given scalar
- Template Parameters
-
T | value type of elements inside given matrix |
- Parameters
-
lhs | matrix divident |
rhs | scalar divisor |
- Returns
◆ operator/() [3/3]
template<typename T , typename U >
Scalar Matrix-division
- Template Parameters
-
T | value type of elements inside given matrix |
- Parameters
-
lhs | scalar divident |
rhs | matrix divisor |
- Returns