std.simd

Robert Jacques sandford at jhu.edu
Thu Mar 15 16:32:27 PDT 2012


On Thu, 15 Mar 2012 14:02:15 -0500, Manu <turkeyman at gmail.com> wrote:
> On 15 March 2012 20:35, Robert Jacques <sandford at jhu.edu> wrote:
>> On Thu, 15 Mar 2012 12:09:58 -0500, Manu <turkeyman at gmail.com> wrote:
[snip]
>> This sounds reasonable. However, please realize that if you wish to use
>> the short vector names (i.e. float4, float3, float2, etc) you should
>> support the full set with a decent range of operations and methods. Several
>> people (myself included) have written similar short vector libraries; I
>> think having having short vectors in phobos is important, but having one
>> library provide float4 and another float2 is less than ideal, even if not
>> all of the types could leverage the SMID backend. For myself, the killer
>> feature for such a library would be have the CUDA compatible alignments for
>> the types. (or an equivalent enum to the effect)
>>
>
> I can see how you come to that conclusion, but I generally feel that that's
> a problem for a higher layer of library.

Then you should to leave namespace room for that higher level library.


More information about the Digitalmars-d mailing list