inner-product edits and tests