Sorry for wasting your time people, the problem was that I had not put the suffix 'new' onto my bug checking in the fortran code, as the vector name changed throuh the calculations (no, I don't know...
Type: Posts; User: morbidslug
Sorry for wasting your time people, the problem was that I had not put the suffix 'new' onto my bug checking in the fortran code, as the vector name changed throuh the calculations (no, I don't know...
OK, I am off to hit the hay now, so I am boosting this to the top of the forum (whaaahahahaha, /evil_laugh) but here is the relevant bits of code in both fortran and c++ in reverse order specified...
The code for constructing the matrices is as above, the code for multiplication of the matrix in Fortran is :
! TRANSFORMING EUCLIDEAN RANDOM POSN VECTOR TO CRYSTAL BASIS (XPOINT ->...
Hey guys,
after poking at my keyboard ineffectually for the past few hours trying to resolve this I am no further, any help at all would be appreciated. I have figured out that my c++ code is...
It is not just newbs to programming, through school, college or real interest, who will join a forum but people who have had programming thrust upon them from different disciplines, the physical...
OMG I am coming across as such an idiot in this forum, leaving code up due to need for ridicule at idocy........ can you spot my glaring error?
/headpalm
HOWEVER even though I built the matrix...
Ok, I am making a c++ object which does the job of this old Fortran code I have, wanting to integrate the functionality into my fresh shiney new c++ skillset. Massive issue is that though the code I...
Beautiful, cheers :)
try the eigen library:
Main Page - Eigen
it's all headers and is quite easy to play with (I added long doubles to the matrix and vector types really easily, even though I had never done any...
obviously you must #include the header files which contain the relavent #includes, owch....
Rogster brought this up in my other thread (by accident as he doesn't know why I do this):
Is it ok to put all your #includes in your header files?
When I have multiple objects referencing each...
Sorry if I rubbed you the wrong way rogster...
Ok, cheers for that, yes I tested my code, if you read my post you would have been able to tell that.
Left the bug checking in there, sorry guys...
<THIS HAS BEEN SORTED BY RESTARTING CODE::BLOCKS, TRY IT IF IT'S RELEVENT, IF NOT WHY ARE YOU EVEN HERE?>
Hi there all, I am new to posting problems on a forum so apologies if my way of talking...