altavir
01/08/2019, 5:38 PMthomasnield
01/09/2019, 3:08 AMaltavir
01/09/2019, 6:45 AMaltavir
01/09/2019, 6:49 AMNDAlgebra
as common ancestor. From the point of view of user You just use one of factories like NDField.real(...)
and forget anything else. From the developer point of view (which is why I need all of this), to add new type of nd-algebra, you just inherit the type of algebra you want, say NDRing
for short or byte and implement 5 methods.altavir
01/09/2019, 6:53 AMNDField.real(10,10).run{one * 10.0} + 2.0
. It is free from the point of view of performance but complicated object structure.altavir
01/09/2019, 4:29 PMthomasnield
01/09/2019, 4:34 PMNDField.real(...)
?altavir
01/09/2019, 4:35 PMaltavir
01/09/2019, 4:35 PMaltavir
01/09/2019, 4:37 PMaltavir
01/09/2019, 4:38 PM