INNER CODE UNIT · Go
coeffs
Consensys/gnark-crypto · ecc/utils.go:322
coeffs := [4]*big.Int{a, b, c, d}
var tmp big.Int
for row := range 4 {
for col := range 4 {
tmp.Mul(coeffs[col], &l.V[col][row])
res[row].Add(&res[row], &tmp)
}
}
return res
}
func det3(a00, a01, a02, a10, a11, a12, a20, a21, a22 *big.Int) big.Int {
var t0, t1, t2, t3, t4 big.Int
t0.Mul(a11, a22)
t1.Mul(a12, a21)
t0.Sub(&t0, &t1)
t1.Mul(a10, a22)