Kouhei Kaigai <kaigai@ak.jp.nec.com> writes:
> The 'matrix' data type as domain type of real[] is an option to implement.
> We can define operators on the domain types, thus, it allows us to process
> large amount of calculation by one operation, in native binary speed.
Don't go that way, it will cause you nothing but pain. The ambiguous-
operator resolution rules are not friendly at all to operators with domain
arguments; basically only exact matches will be recognized.
regards, tom lane