Jim

200x200

,jim,satori,21.04.2015 16:50,file:///home/jim/.config/libreoffice/4;
\ No newline at end of file
... ...
No preview for this file type
... ... @@ -6,12 +6,12 @@ int main(){
matrix *m1, *m2, *m3;
m1 = matrix_init (3,3);
m2 = matrix_init (3,3);
m1 = matrix_init (200,200);
m2 = matrix_init (200,200);
for (int i=0; i < matrix_get_rows(m1); i++){
for (int j=0; j < matrix_get_columns(m1); j++) {
set (m1, i, j, 1);
set (m1, i, j, i*j);
}
}
... ... @@ -23,7 +23,7 @@ int main(){
n = matrix_get_columns (m2);
for (int i=0; i < n; i++){
set(m2, i, i, 1);
set(m2, i, i, 343423.344);
}
m3 = matrix_mult (m1, m2);
... ...
No preview for this file type
... ... @@ -38,8 +38,8 @@ int main(){
matrix *in1, *in2, *out;
in1 = matrix_init (10,10);
in2 = matrix_init (10,10);
in1 = matrix_init (200,200);
in2 = matrix_init (200,200);
for(int i=0; i < matrix_get_rows(in1); i++){
for (int j=0; j < matrix_get_columns(in1); j++){
set(in1, i, j, i*j);
... ... @@ -53,7 +53,7 @@ int main(){
n = matrix_get_columns(in2);
for(int i=0; i < n; i++){
set(in2, i, i, 1);
set(in2, i, i, 523235.1);
}
out = matrix_mult(in1, in2);
... ...
No preview for this file type