ip=inner product
op=outer product