Multiply two polynomials of same degree using divide and conquer by Strassen's matrix multiplication method .
#include <stdio.h>
int n = 4;
void mylt(double a[][n], double b[][n], double c[][n]) {
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
c[i][j] = 0;
for (int k = 0; k < n; k++) {
c[i][j] += a[i][k] * b[k][j];
}
}
}
}
int main(int argc, char *argv[]) {
return 0;
}
Comments
Leave a comment