mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
Add a HashValue<INT<3>> for ParallelHashTable
This commit is contained in:
parent
495a6eddf7
commit
6d34f01d95
@ -827,7 +827,13 @@ namespace ngcore
|
||||
return ost;
|
||||
}
|
||||
|
||||
|
||||
template <typename TI>
|
||||
NETGEN_INLINE size_t HashValue (const INT<3,TI> ind)
|
||||
{
|
||||
INT<3,size_t> lind = ind;
|
||||
return 113*lind[0]+59*lind[1]+lind[2];
|
||||
}
|
||||
|
||||
template <typename TI>
|
||||
NETGEN_INLINE size_t HashValue (const INT<2,TI> ind)
|
||||
{
|
||||
|
@ -1390,7 +1390,6 @@ inline size_t HashValue (INDEX_2 i2, size_t size) { return (113*size_t(i2[0])+si
|
||||
|
||||
ClosedHashTable (ClosedHashTable && ht2) = default;
|
||||
|
||||
// who needs that ?
|
||||
ClosedHashTable (NgFlatArray<T_HASH> _hash, NgFlatArray<T> _cont)
|
||||
: size(_hash.Size()), used(0), hash(_hash.Size(), _hash.Addr(0)), cont(_cont.Size(), _cont.Addr(0))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user