Jump to content

  • Log In with Google      Sign In   
  • Create Account


Matrix API?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
8 replies to this topic

#1 kirkd   Members   -  Reputation: 505

Like
Likes
Like

Posted 24 August 2001 - 09:49 AM

Does anyone know of a good (read "free and reliable") API for matrix calculations. I''m looking for something that can do inversions along with all the other good matrix operations. Thanks!! -Kirk

Sponsor:

#2 a2k   Members   -  Reputation: 122

Like
Likes
Like

Posted 24 August 2001 - 10:43 AM

i still think this is an excellent set of basic 3d graphics structures:

http://www.gamedev.net/reference/articles/article988.asp

a2k

#3 kirkd   Members   -  Reputation: 505

Like
Likes
Like

Posted 25 August 2001 - 04:48 AM

Thanks for the link! I notice, however, they don''t supply any code for inversion. ugh. I guess I''ll have to do that one myself.

-Kirk


#4 grhodes_at_work   Moderators   -  Reputation: 1361

Like
Likes
Like

Posted 27 August 2001 - 06:30 AM

I''ve used a math library called Newmat, which is decent and source code is available, including inversions. Here is the link:

http://webnz.com/robert/cpp_lib.htm

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.

#5 kirkd   Members   -  Reputation: 505

Like
Likes
Like

Posted 27 August 2001 - 08:10 AM

Graham,

Thanks! I''m sure I can''t write an efficient matrix inversion routine better than what is available out there. This should help a lot.

-Kirk


#6 Beer Hunter   Members   -  Reputation: 712

Like
Likes
Like

Posted 27 August 2001 - 07:45 PM

I could give you the maths for inverting a matrix... but I doubt you need it now.

#7 kirkd   Members   -  Reputation: 505

Like
Likes
Like

Posted 28 August 2001 - 03:01 AM

Sure, I''d welcome any input you have. The math isn''t the problem, however, it''s making it fast and efficient. Matrix inversion is rather costly, isn''t it?

-Kirk



#8 grhodes_at_work   Moderators   -  Reputation: 1361

Like
Likes
Like

Posted 28 August 2001 - 06:06 AM

One question to ask yourself is: do I *really* need to invert the matrix? Yes, inversion is expensive and there actually are often ways to do things without needing the inverse. The method implemented in the Newmat library I think is one of the most efficient methods for *arbitrary* matrices. If you need to invert a 4x4 or 3x3 transformation matrix, then the fastest method will be a closed form solution, available I think in an appendix of the OpenGL red book as well as many other sources.

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.

#9 rkinasz   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 August 2001 - 04:16 PM

the matrix has you...




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS