Re: [Open Babel] how to add matrix3x3 data to OBAtom

2017-03-26 Thread shabdaclinic
In this article include about the matrix based program.it include simple program.everyone easily understand this program.this article is very helpful for the students.i really like to read this article.thanks a lot for sharing this article. - hearing aid Adoor -- View this message in co

Re: [Open Babel] how to add matrix3x3 data to OBAtom

2017-03-15 Thread Noel O'Boyle
It doesn't work like that. Just use a map from OBAtom* to your matrix like you would for any associations. Note that objects allocated on the stack will disappear when you leave the enclosing scope so you might want to use "new". On 15 Mar 2017 9:33 p.m., "ivan.petit" wrote: Hi obabel users, I

[Open Babel] how to add matrix3x3 data to OBAtom

2017-03-15 Thread ivan.petit
Hi obabel users, I would like to store a 3x3 matrix data to OBAtom. Could you tell me the right way to do that? I tried a procedure like that OBAtom Atm; vector3 vec1(1,2,3), vec2(4,5,6), vec3(7,8,9); OBMatrixData Mat; Mat.SetData(matrix3x3(vec1, vec2, vec3));