Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Barycentric interpolator produce a codegen error with --gc:arc #24

Open
Clonkk opened this issue Nov 9, 2021 · 0 comments
Open

Barycentric interpolator produce a codegen error with --gc:arc #24

Clonkk opened this issue Nov 9, 2021 · 0 comments

Comments

@Clonkk
Copy link
Member

Clonkk commented Nov 9, 2021

var ptsCoord = newSeq[array[2, float]]()
# corners
ptsCoord.add([-200.0,-150.0])
ptsCoord.add([-200.0,150.0])
ptsCoord.add([200.0,-150.0])
ptsCoord.add([200.0,150.0])
var ptsValue = @[0.0,1.0,4.0,5.0]
# extra pts
ptsCoord.add([0.0,-150.0])
ptsCoord.add([0.0,150.0])
ptsCoord.add([0.0,0.0])
ptsValue.add(8.0)
ptsValue.add(1.0)
ptsValue.add(1.0)
let bary = newBarycentric2D(ptsCoord.toTensor(), ptsValue.toTensor())

Compiled with nim cpp --gc:arc with Nim 1.6.0

It seems related to Vector2 in cdt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant