Beginner needs help with matrix.

Hello world!
I was searching online for a solution but couldn't find a specific answer.

I need to write a code in c++ that multiplies a square matrix with it's transposed version (A[n*n] * At). I would usually know how to transpose a matrix but this time it is required for me to transpose a square matrix (A[n*n]) which is initialized upon declaration.

Since I am new to c++ I would really appreciate your help with this.
I would usually know how to transpose a matrix

What makes you think that a square matrix requires a different procedure?

In fact, you don't need a transposed matrix at all; adjust the multiplication.

Do you know how to multiply matrices?
Topic archived. No new replies allowed.