mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-22 16:13:39 +00:00
Add matrix equality operator
This commit is contained in:
parent
125809d721
commit
675ebc28a1
1 changed files with 10 additions and 0 deletions
|
@ -77,6 +77,16 @@ namespace FasTC {
|
|||
return ret;
|
||||
}
|
||||
|
||||
// Equality operator
|
||||
template<typename _T>
|
||||
bool operator==(MatrixBase<_T, nRows, nCols> &other) const {
|
||||
bool result = true;
|
||||
for(int i = 0; i < Size; i++) {
|
||||
result = result && (mat[i] == other[i]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Matrix multiplication
|
||||
template<typename _T, const int nTarget>
|
||||
MatrixBase<T, nRows, nTarget> MultiplyMatrix(const MatrixBase<_T, nCols, nTarget> &m) const {
|
||||
|
|
Loading…
Reference in a new issue