Hi guys and gals,
I have been a member long since..but i haven't mailed
anytime and this is the first time.
I have some problems in writing a code for matrix
operations. The problem i have is that i want to add
two matrices or any arithmetic operation on a matrix.
I have overloaded operators for it.
1) The problem I face is that I wish to add two
matrices like this : a = b + c. But i dont wish to
change the contents of b matrix. Its like this :
a = b+ c is like - b.operator+(c). And I'm using
referance here.
Matrix& operator+(matrix &)
so internally the this pointer is used for b matrix in
the function. And i have to return this pointer when
returning a reference.
But i don't want to change or alter b matrix. How do i
come about that.
2) Another problem i face is while writing a code for
determining the determinant value of a matrix. I know
that it is a recursive in nature. But I'm simply
unable to complrehend on how to code it. Can anyone
help me.Perhaps a code snippet? Please help on this.
Thanx in advance for your help guys.
I think this is a great forum.
Yours Siddharth
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
>-----------------------------------------~-~>
CHECK THE ARCHIVE BEFORE POSTING!!!! Archive is available at
http://www.eScribe.com/software/C-Paradise/
>------------------------------------------_->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/C-Paradise/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/