hibernate-orm icon indicating copy to clipboard operation
hibernate-orm copied to clipboard

HHH-17549, HHH-17580 syntax sugar for norm ||x||, abs |x|, and exponentiation x^y

Open gavinking opened this issue 2 years ago • 1 comments

This adds some syntax sugar:

  • |x| for the absolute value of a number
  • ||x-y|| or ||x-y||2 for the L2 distance
  • ||x-y||1 for the L1 distance
  • ||x|| for the L2 norm
  • x^y for exponentiation

It would be easy to add ||x||1 for the L1 norm.

Hoping this does not create an ambiguity with the string concatenation operator.

https://hibernate.atlassian.net/browse/HHH-17549 https://hibernate.atlassian.net/browse/HHH-17580

gavinking avatar Dec 08 '23 15:12 gavinking

Thanks for your pull request!

This pull request appears to follow the contribution rules.

› This message was automatically generated.