File tree 4 files changed +18
-14
lines changed
4 files changed +18
-14
lines changed Original file line number Diff line number Diff line change 12
12
runs-on : ubuntu-20.04
13
13
strategy :
14
14
matrix :
15
- GOVER : ['1.18 ', '1.17 ', '1.16 ']
15
+ GOVER : ['1.19 ', '1.18 ', '1.17 ']
16
16
steps :
17
17
- name : Setup Go-${{ matrix.GOVER }}
18
18
uses : actions/setup-go@v3
23
23
- name : Linting
24
24
uses : golangci/golangci-lint-action@v3
25
25
with :
26
- version : v1.46
26
+ version : v1.48
27
27
args : --config=./.etc/golangci.yml ./...
28
28
- name : Check shadowing
29
29
run : |
46
46
runs-on : ubuntu-20.04
47
47
strategy :
48
48
matrix :
49
- CFG : [ [arm64,arm64v8,1.18 ] ]
49
+ CFG : [ [arm64,arm64v8,1.19 ] ]
50
50
steps :
51
51
- uses : actions/checkout@v3
52
52
- name : Enabling Docker Experimental
72
72
- name : Setup Go
73
73
uses : actions/setup-go@v3
74
74
with :
75
- go-version : ' 1.18 '
75
+ go-version : ' 1.19 '
76
76
- name : Produce Coverage
77
77
run : go test -coverprofile=./coverage.txt ./...
78
78
- name : Upload Codecov
92
92
- name : Setup Go
93
93
uses : actions/setup-go@v3
94
94
with :
95
- go-version : ' 1.18 '
95
+ go-version : ' 1.19 '
96
96
- name : Building
97
97
run : go build -v ./...
98
98
- name : Testing
Original file line number Diff line number Diff line change 1
1
module github.com/cloudflare/circl
2
2
3
- go 1.16
3
+ go 1.17
4
4
5
5
require (
6
6
github.com/bwesterb/go-ristretto v1.2.2
7
7
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
9
9
)
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
6
6
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
7
7
golang.org/x/sys v0.0.0-20210423082822-04245dca01da /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
8
8
golang.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 =
11
11
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 /go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo =
12
12
golang.org/x/text v0.3.6 /go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ =
13
13
golang.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 {
15
15
16
16
// New creates a new polynomial given its coefficients in ascending order.
17
17
// Thus,
18
- // p(x) = \sum_i^k c[i] x^i,
18
+ //
19
+ // p(x) = \sum_i^k c[i] x^i,
20
+ //
19
21
// where k = len(c)-1 is the degree of the polynomial.
20
22
//
21
23
// The zero polynomial has degree equal to -1 and can be instantiated passing
@@ -64,10 +66,12 @@ type LagrangePolynomial struct {
64
66
65
67
// NewLagrangePolynomial creates a polynomial in Lagrange basis given a list
66
68
// 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
+ //
71
75
// It panics if one of these conditions does not hold.
72
76
//
73
77
// 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