Add contract functions around a rank three tensor.