I would like to perform a fairly simple divide operation in Microsoft Accelerator:
X = P / (1 + K * O')
where P, K and O are vectors, and K * O' performs a dot product operation.
I tried PA.Divide(P, 1 + PA.Sum(PA.Multiply(K, O)))
, however this does not work as it gives an error saying the matrices supplied to the divide command are of different dimensions, which makes sense as the second argument should just be a scalar.
I got around this by converting the second argument to an array then using its first element, but this slows down computation significantly.
How can I perform this operation without converting to an array first?