working on hash(), also for tensor

This commit is contained in:
jiri committed 2026-11-26 20:35:58 +01:00
1 parent 8b2b413db7
commit ed96821e0a
9 files changed
+126 -1

No files matched your search

+6
View File
@@ -21,6 +21,7 @@
#ifndef _LA_MAT_H_
#define _LA_MAT_H_
#include "la_traits.h"
#include <functional>
using namespace LA_Vecmat3;
@@ -1829,5 +1830,10 @@ NRVECMAT_OPER2(Mat, +)
NRVECMAT_OPER2(Mat, -)
}//end of the LA-namespace
//hash() as the hash function of the standard library, see the note in vec.h
namespace std {
template<typename T> struct hash<LA::NRMat<T> > {size_t operator()(const LA::NRMat<T> &x) const {return x.hash();}};
}
#endif/* _LA_MAT_H_ */