ضرب المصفوفات: الفرق بين النسختين

[مراجعة غير مفحوصة][مراجعة غير مفحوصة]
تم حذف المحتوى تمت إضافة المحتوى
سطر 56:
: <math>c \left(\mathbf{AB}\right) = \left(c\mathbf{A}\right) \mathbf{B} = \left(\mathbf{A}c\right) \mathbf{B} = \mathbf{A} \left(c \mathbf{B} \right) = \mathbf{A} \left(\mathbf{B} c\right) = \left(\mathbf{AB} \right) c</math>.
== خوارزمية لضرب المصفوفات ==
<div style="text-align: left;">
<code>
'''procedure''' bubbleSort( A ''':''' list of sortable items )
''' MATRIX_MULTIPLY ( A,B )'''
'''repeat'''
n←number_of_rows_A
let C be answapped nxn= matrixfalse
'''for''' i = 1 ''' to ''' nlength(A) - 1 '''inclusive do:'''
do '''forif''' j=A[i-1] '''> toA[i] ''' n then'''
do cswap( A[i-1],j A[i]←0 )
swapped '''for''' k=1 ''' to ''' n ''' true
'''end if'''
do c[i,j]← c[i,j]+a[i,k]*b[k,j]
'''end for'''
return C
'''until not''' swapped
</code>
'''end procedure'''</code>
</div>
 
{{أسبوع الويكي}}