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

question about the code #1

Open
Jacklwln opened this issue Oct 20, 2018 · 3 comments
Open

question about the code #1

Jacklwln opened this issue Oct 20, 2018 · 3 comments

Comments

@Jacklwln
Copy link

Hi, I can not run the code, there are some errors like " no operator "-" matches these operands ", just in:
Packet diag0a_x = g0.packet(v11,0) - g0.packet(v00,0) + pe;
Packet diag0a_y = g0.packet(v11,1) - g0.packet(v00,1) + pe;
Packet diag0b_x = g0.packet(v01,0) - g0.packet(v10,0) - pe;
Packet diag0b_y = g0.packet(v01,1) - g0.packet(v10,1) + pe;
Packet dda_x = gd.packet(v11,0) - gd.packet(v00,0);
Packet dda_y = gd.packet(v11,1) - gd.packet(v00,1);
Packet ddb_x = gd.packet(v01,0) - gd.packet(v10,0);
Packet ddb_y = gd.packet(v01,1) - gd.packet(v10,1);
more details are in the figure.
I think the vision of my Eigen and SUITESPARSE do not match, so which vision of Eigen and SUITESPARSE do you employ respectively?
qq20181020114320

@ggael
Copy link
Owner

ggael commented Oct 20, 2018

Those are errors from the IDE, not from the compiler. So please try to compile it first.

@chkone
Copy link

chkone commented Mar 22, 2019

Currently I try to compile without SparseSuite on Windows.
I have the same error as a compiler error:
otsolver_2dgrid.cpp(389): error C2676: binary '+': 'Packet' does not define this operator or a conversion to a type acceptable to the predefined operator
otsolver_2dgrid.cpp(500): error C2676: binary '-': '__m128d' does not define this operator or a conversion to a type acceptable to the predefined operator
I look on packet_traits::type
Whih is typedef typedef __m128d Packet2d;
For me, and __m128d don't have operators like +, -, ...
Which explain those errors.

@ggael
Copy link
Owner

ggael commented Mar 24, 2019 via email

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

3 participants