matrix addition

(redirected from Matrix subtraction)
Also found in: Thesaurus.
ThesaurusAntonymsRelated WordsSynonymsLegend:
Noun1.matrix addition - the addition of matricesmatrix addition - the addition of matrices    
matrix operation - a mathematical operation involving matrices
Mentioned in ?
References in periodicals archive ?
From the above formula we can see that there are three basic operations, namely Flatten() , matrix subtraction and matrix multiplication.
The subtraction of dimensional matrix can be performed in parallel to calculate the difference of each element at the same position stated in (3), and the algorithm of matrix subtraction is illustrated in Algorithm 2:
Input: Matrix left, Matrix right Output: Matrix result (1) // Matrix Subtraction (2) parallel for i from 0 to rows (3) for j from 0 to cols (4) Subtraction: result[i, j] = left[i, j] - right[i, j] (5) endfor (6) endfor (7) (8) // Matrix Multiplication (9) for i from 0 to leftRows (10) parallel for j from 0 to rightColumns (11) for k from 0 to (12) Calculate sum: sum += left[i,k] x right[k,j]; (13) endfor (14) result [i, j] = sum; (15) endfor (16) endfor (17) (18) // Matrix Transpose (19) parallel for i from 0 to rows (20) for j from 0 to cols (21) Transpose by convert row to column: result[j,i] = input[i, j]; (22) endfor (23) endfor (24) return result; (2) Parallel Multiplication.