openfpm_data merge requestshttps://git.mpi-cbg.de/mosaic/software/parallel-computing/openfpm/openfpm_data/-/merge_requests2020-11-23T21:14:47Zhttps://git.mpi-cbg.de/mosaic/software/parallel-computing/openfpm/openfpm_data/-/merge_requests/2Add the squared 2-norm of a Point, with the norm2() method.2020-11-23T21:14:47ZbianucciAdd the squared 2-norm of a Point, with the norm2() method.The value of the squared 2-norm of a point is often needed and it does not make sense to compute the 2-norm through a sqrt() and then square the result again.
Instead I propose simply having a norm2() method, analogously to the distance2...The value of the squared 2-norm of a point is often needed and it does not make sense to compute the 2-norm through a sqrt() and then square the result again.
Instead I propose simply having a norm2() method, analogously to the distance2() one which is already part of the Point interface.Pietro IncardonaPietro Incardona