Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Defining a matrix as an array of arrays and computation its inverse matrix in C++

Tags:

c++-cli

Unfortunately I haven't much experience in C++ and I'm trying to progress myself in C++.

Firstly,I defined array of arrays so that I formed an 3x3 matrix:

array< array< double >^ >^ input = gcnew array< array< double >^ >(3);

for (j=0;j<input->Length;j++){
    input[j]=gcnew array<double>(3);

Then I assigned matrix elements to input array of arrays:

 int value=1;
for(y=0;y<(3);y++){
  for(x=0;x<(3);x++)
 {input[y][x]=value;
  value=value+1;
  }
  }

Is there a C++ function that compute inverse matrix of this input array of arrays?

Could you help me please?

Best Regards...

like image 338
yalcin Avatar asked Dec 17 '25 06:12

yalcin


1 Answers

Look at Simple 3x3 matrix inverse code (C++).

like image 183
grigy Avatar answered Dec 21 '25 14:12

grigy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!