For matrices, I think it is
pointer(A, stride(A, 2)*(n - 1) + stride(A, 1)*m) in general, but if you
are only considering Array{T,2} then
pointer(A, size(A, 2)*(n - 1) + m)
should be fine.
2014-12-07 16:14 GMT-05:00 <[email protected]>:
> As a side question, what's the best way to get a pointer to an element of
> an array, e.g. if I want a pointer to the memory location which holds
> A[3,6]?
>
> On Sunday, December 7, 2014 10:21:17 AM UTC-8, Stefan Karpinski wrote:
>>
>> On Sun, Dec 7, 2014 at 1:15 PM, Andreas Noack <[email protected]>
>> wrote:
>>
>>> Maybe we should consider to support pointer version of the BLAS2 and 3
>>> wrappers.
>>
>>
>> Seems like a good idea.
>>
>