Product of square matrices P37390


Statement
 

pdf   zip   main.cc

html

Using the declaration

typedef vector< vector<int> > Matrix;

Write a function

Matrix product(const Matrix& a, const Matrix& b);

that, given two square matrices a and b, computes their product.

Precondition a and b are square matrices n× n with n ≥ 0.

Information
Author
Jordi Petit
Language
English
Translator
Carlos Molina
Original language
Catalan
Other languages
Catalan
Official solutions
C++
User solutions
C++