Lines Matching refs:sum
162 double sum = 0; in multiply_matrix_vector() local
164 sum += A[i][k] * x[k]; in multiply_matrix_vector()
165 y[i] = sum; in multiply_matrix_vector()
179 double sum = 0; in multiply_matrices() local
181 sum += a[i][k] * b[k][j]; in multiply_matrices()
182 c[i][j] = sum; in multiply_matrices()
285 double sum = b[i]; in solve() local
287 sum -= a[index][j] * b[j]; in solve()
291 b[i] = sum / a[index][i]; in solve()
420 double sum = 0; in qr_decomposition() local
422 sum += a[i][j] * a[i][k]; in qr_decomposition()
423 sum *= beta; in qr_decomposition()
426 a[i][k] += a[i][j] * sum; in qr_decomposition()
445 double sum = 0; in qr_decomposition() local
447 sum += q[k][i] * a[i][j]; in qr_decomposition()
448 sum *= beta2; in qr_decomposition()
451 q[k][i] += sum * a[i][j]; in qr_decomposition()