sibarrick Posted May 6, 2006 Share Posted May 6, 2006 Hi, I need to call a function from UT_MatrixSolver but this class doesn't have a constructor so I can't instance it. I've tried calling it like a static function UT_MatrixSolver::LUBackSub(LU, P, weightsX); But then the compiler complains because it isn't a static function, so how do you call a function like this? Quote Link to comment Share on other sites More sharing options...
edward Posted May 6, 2006 Share Posted May 6, 2006 Sorry, you need to create an instance of it. If it doesn't have a constructor, it just means that a default one is used. eg. UT_MatrixSolver solver; solver.LUBackSub(...); Quote Link to comment Share on other sites More sharing options...
sibarrick Posted May 6, 2006 Author Share Posted May 6, 2006 Ah, doh! should have tried that I suppose. Cheers Edward. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.