Re: Binary operators for cubes

2025-07-07 Thread Dean Rasheed
On Fri, 4 Jul 2025 at 13:07, Kirill Panin wrote: > > Thanks for your response. > Do you think it makes sense to disallow cube+cube operations and only > allow cube+point or point+point instead? Dot and cross products would be > similarly only defined for point+point if someone were to implement th

Re: Binary operators for cubes

2025-07-05 Thread Kirill Panin
Hi, Thanks for your response. Do you think it makes sense to disallow cube+cube operations and only allow cube+point or point+point instead? Dot and cross products would be similarly only defined for point+point if someone were to implement them. I'll submit a v2 if this is an acceptable solut

Re: Binary operators for cubes

2025-07-02 Thread Dean Rasheed
On Thu, 15 May 2025 at 16:16, Kirill Panin wrote: > > Hi hackers! > > The "cube" extention is frequently used for vectors, but the current > implementation lacks support for binary operators, such as +, -, *, /. > The attached (fairly trivial) patch adds support for these with the > required docum

Binary operators for cubes

2025-05-15 Thread Kirill Panin
PaninFrom 98a8111a83a3443287061af9461b3e03e9dcb6e6 Mon Sep 17 00:00:00 2001 From: Kirill Panin Date: Wed, 14 May 2025 15:30:48 +0300 Subject: [PATCH v1] Add binary operators for cubes --- contrib/cube/Makefile | 2 +- contrib/cube/cube--1.5--1.6.sql | 56 ++ contrib/c