I don't see how that can compile given that pLocal is never defined. I also don't see how it can be computing a dot product, given that it outputs an array rather than a single value