Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Matrix Inverse of 6x6 matrix

107 views
Skip to first unread message

Vaibhav Kumar

unread,
Mar 7, 2019, 1:59:05 AM3/7/19
to
Hi ,

I want to know how can i find inverse of matrix of size 6x6 in tcl. Is there any in-built function for this ?


Regards
Vaibhav

Ralf Fassel

unread,
Mar 7, 2019, 4:57:45 AM3/7/19
to
* Vaibhav Kumar <vk53...@gmail.com>
| I want to know how can i find inverse of matrix of size 6x6 in tcl. Is
| there any in-built function for this ?

Maybe tcllib has something in the math subpackage, there are some
references to matrix operations in the math::linearalgebra package...

https://core.tcl.tk/tcllib/doc/trunk/embedded/www/toc.html

https://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/math/linalg.html

HTH
R'

Vaibhav Kumar

unread,
Mar 7, 2019, 5:09:49 AM3/7/19
to
I had found a function for calculating determinant under the 2nd link but hadn't been able to found a function that calculates inverse of matrix.

Ralf Fassel

unread,
Mar 7, 2019, 5:23:17 AM3/7/19
to
* Vaibhav Kumar <vk53...@gmail.com>
| I had found a function for calculating determinant under the 2nd link
| but hadn't been able to found a function that calculates inverse of matrix.

If there's nothing else to be found, I guess it's your chance then to implement

https://en.wikipedia.org/wiki/Gaussian_elimination#Finding_the_inverse_of_a_matrix

and contribute it to Tcllib ;-)

R'

Vaibhav Kumar

unread,
Mar 7, 2019, 5:30:38 AM3/7/19
to
That seems interesting. Thanks for the help.

Arjen Markus

unread,
Mar 7, 2019, 6:46:01 AM3/7/19
to
On Thursday, March 7, 2019 at 11:30:38 AM UTC+1, Vaibhav Kumar wrote:
> That seems interesting. Thanks for the help.

For what purpose do you need the inverse matrix? Most of the time you should avoid doing that and instead store, say, the LU decomposition as it is much more efficient to calculated and solving systems of equations with that is just as easy. That is the reason no such procedure is included in the Tcllib math::linearalgebra package.

Regards,

Arjen

Vaibhav Kumar

unread,
Mar 7, 2019, 12:02:03 PM3/7/19
to
I was trying to solve the system of equations. So i was trying to solve that by finding cramer's rule. By the way i found that how to find the inverse of matrix.

Arjen Markus

unread,
Mar 8, 2019, 5:17:15 AM3/8/19
to
On Thursday, March 7, 2019 at 6:02:03 PM UTC+1, Vaibhav Kumar wrote:
> I was trying to solve the system of equations. So i was trying to solve that by finding cramer's rule. By the way i found that how to find the inverse of matrix.

Cramer's rule is notoriously inefficient :). The math::linearalgebra package in Tcllib gives you the methods you need.

Regards,

Arjen

Vaibhav Kumar

unread,
Mar 8, 2019, 5:58:50 AM3/8/19
to
Yes. I found the solution.

Arjen Markus

unread,
Mar 8, 2019, 10:33:39 AM3/8/19
to
On Friday, March 8, 2019 at 11:58:50 AM UTC+1, Vaibhav Kumar wrote:
> Yes. I found the solution.

Ah, good :).

Regards,

Arjen

Uwe Klein

unread,
Mar 21, 2019, 6:36:10 AM3/21/19
to
there was this "faceted object" package around

matrix operations, handling and visualization of faceted objects.

couldn't (re)find it on short notice.

Uwe


0 new messages