Fixed inner-product template