mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
Merge branch 'hashvalue_int3' into 'master'
Add a HashValue<INT<3>> for ParallelHashTable See merge request jschoeberl/netgen!278
This commit is contained in:
commit
9d0902fb57
@ -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