Does people favor to have matrix data type?

From: Kouhei Kaigai <kaigai(at)ak(dot)jp(dot)nec(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Does people favor to have matrix data type?
Date: 2016-05-25 02:52:38
Message-ID: 9A28C8860F777E439AA12E8AEA7694F8011F52EF@BPXM15GP.gisp.nec.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In a few days, I'm working for a data type that represents matrix in
mathematical area. Does people favor to have this data type in the core,
not only my extension?

Like oidvector or int2vector, it is one of array type with a few
restrictions:
- 2 dimensional only
- never contains NULL
- element type is real or float
- no lower bounds of array

A vector in mathematic is a special case of matrix; either 1xN or Nx1.

We can define various operators between matrix/scalar, like:
matrix + matrix -> matrix
matrix - scalar -> matrix
matrix * matrix -> matrix
transform(matrix) -> matrix
:

How about people's thought?

If overall consensus is welcome to have, I'll set up a patch.

Thanks,
--
NEC Business Creation Division / PG-Strom Project
KaiGai Kohei <kaigai(at)ak(dot)jp(dot)nec(dot)com>

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2016-05-25 02:56:53 Re: To-Do item: skip table scan for adding column with provable check constraints
Previous Message Craig Ringer 2016-05-25 02:47:04 Re: Inheritance