Skip to content

Commit

Permalink
Merge pull request #30 from SciNim/fix-unspecified-seq
Browse files Browse the repository at this point in the history
fix unspecified seqs
  • Loading branch information
HugoGranstrom authored Sep 29, 2022
2 parents 614cb30 + 86a1fd4 commit 4498640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/numericalnim/integrate.nim
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ proc romberg*[T](Y: openArray[T], X: openArray[float]): T =

proc getGaussLegendreWeights(nPoints: int): tuple[nodes: seq[float], weights: seq[float]] {.inline.} =
assert(0 < nPoints and nPoints <= 20, "nPoints must be an integer between 1 and 20.")
const gaussWeights: array[1..20, (seq, seq)] = [
const gaussWeights: array[1..20, (seq[float], seq[float])] = [
(@[0.0],
@[2.0]),
(@[-0.5773502691896257645092, 0.5773502691896257645092],
Expand Down

0 comments on commit 4498640

Please sign in to comment.