Arguments to ^ must be primitive (real or int)

Hello, I have prloblem with exponential “^”

arguments to ^ must be primitive (real or int); cannot exponentiate vector by int in block=transformed parameter

stan block
transformed parameters {
vector[N] mu = Linf*((2*(1 + exp(-k * (A + dt - t0)))^-1) -1);

That means literally what it says, but no one should be raising something to the power of -1 anyway. Do

vector[N] mu = Linf * ( (2 * inv(1 + exp(-k * (A + dt - t0)))) - 1 );

Thanks very much, its great