File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 runs-on : ubuntu-20.04
1313 strategy :
1414 matrix :
15- GOVER : ['1.18 ', '1.17 ', '1.16 ']
15+ GOVER : ['1.19 ', '1.18 ', '1.17 ']
1616 steps :
1717 - name : Setup Go-${{ matrix.GOVER }}
1818 uses : actions/setup-go@v3
2323 - name : Linting
2424 uses : golangci/golangci-lint-action@v3
2525 with :
26- version : v1.46
26+ version : v1.48
2727 args : --config=./.etc/golangci.yml ./...
2828 - name : Check shadowing
2929 run : |
4646 runs-on : ubuntu-20.04
4747 strategy :
4848 matrix :
49- CFG : [ [arm64,arm64v8,1.18 ] ]
49+ CFG : [ [arm64,arm64v8,1.19 ] ]
5050 steps :
5151 - uses : actions/checkout@v3
5252 - name : Enabling Docker Experimental
7272 - name : Setup Go
7373 uses : actions/setup-go@v3
7474 with :
75- go-version : ' 1.18 '
75+ go-version : ' 1.19 '
7676 - name : Produce Coverage
7777 run : go test -coverprofile=./coverage.txt ./...
7878 - name : Upload Codecov
9292 - name : Setup Go
9393 uses : actions/setup-go@v3
9494 with :
95- go-version : ' 1.18 '
95+ go-version : ' 1.19 '
9696 - name : Building
9797 run : go build -v ./...
9898 - name : Testing
Original file line number Diff line number Diff line change 11module github.com/cloudflare/circl
22
3- go 1.16
3+ go 1.17
44
55require (
66 github.com/bwesterb/go-ristretto v1.2.2
77 golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
8- golang.org/x/sys v0.0.0-20220808155132-1c4a2a72c664
8+ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab
99)
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qx
66golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
77golang.org/x/sys v0.0.0-20210423082822-04245dca01da /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
88golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 /go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg =
9- golang.org/x/sys v0.0.0-20220808155132-1c4a2a72c664 h1:v1W7bwXHsnLLloWYTVEdvGvA7BHMeBYsPcF0GLDxIRs =
10- golang.org/x/sys v0.0.0-20220808155132-1c4a2a72c664 /go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg =
9+ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab h1:2QkjZIsXupsJbJIdSjjUOgWK3aEtzyuh2mPt3l/CkeU =
10+ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab /go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg =
1111golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 /go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo =
1212golang.org/x/text v0.3.6 /go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ =
1313golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e /go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ =
Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ type Polynomial struct {
1515
1616// New creates a new polynomial given its coefficients in ascending order.
1717// Thus,
18- // p(x) = \sum_i^k c[i] x^i,
18+ //
19+ // p(x) = \sum_i^k c[i] x^i,
20+ //
1921// where k = len(c)-1 is the degree of the polynomial.
2022//
2123// The zero polynomial has degree equal to -1 and can be instantiated passing
@@ -64,10 +66,12 @@ type LagrangePolynomial struct {
6466
6567// NewLagrangePolynomial creates a polynomial in Lagrange basis given a list
6668// of nodes (x) and values (y), such that:
67- // p(x) = \sum_i^k y[i] L_j(x), where k is the degree of the polynomial,
68- // L_j(x) = \prod_i^k (x-x[i])/(x[j]-x[i]),
69- // y[i] = p(x[i]), and
70- // all x[i] are different.
69+ //
70+ // p(x) = \sum_i^k y[i] L_j(x), where k is the degree of the polynomial,
71+ // L_j(x) = \prod_i^k (x-x[i])/(x[j]-x[i]),
72+ // y[i] = p(x[i]), and
73+ // all x[i] are different.
74+ //
7175// It panics if one of these conditions does not hold.
7276//
7377// The zero polynomial has degree equal to -1 and can be instantiated passing
You can’t perform that action at this time.
0 commit comments