c++ - debug error, abort has been called when assigning a value to an Eigen matrix element -


i'm writing finite element program, , need library matrix alocation , manipulation. eigen seemed fine.

but got weird bug where:

double numero = get_coordenada(elemento.no1, 'x', vector_de_nos); m_coord_nos(1, 1) = numero; 

works fine.

but this:

m_coord_nos(1, 1) = get_coordenada(elemento.no1, 'x', vector_de_nos); 

or this:

m_coord_nos(1,1) = vector_nos[elemento.no1].x; 

gives me debug error, abort() has been called.

vector_nos vector of struct_no, made 3 double values, x, y , z. get_coordenada function returns double value.

i'm stumped. why getting error?


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -