- **C++**
(*http://www.go4expert.com/forums/cpp/*)

- - **C++ project to row reduce matrices**
(*http://www.go4expert.com/forums/cpp-project-row-reduce-matrices-t17177/*)

C++ project to row reduce matricesI am writing a c++ project to row reduce matrices. I was wondering if the following line would work to find the absolute value of the largest number in a row?
e=fabs(a[b][b]); Thanks |

Re: C++ project to row reduce matricesThe function calculates the absolute value of a specific value, i.e. it strips off the sign, so fabs(-3) is 3. To find the highest value in a row you need to loop over that row storing the current highest and replace it when you come across a higher value.
As I've already answered this in another thread here's some code (not compiled): Code:
`int arr[10];` |

All times are GMT +5.5. The time now is 22:12. |