使用MPI进行并行编程来实现矩阵与向量的乘法。
Parallel programming using MPI to multiply a matrix by a vector.
假设有一个4x4的矩阵,我们希望将其与另外一个4x1的向量进行乘法操作。
Let's say we have a 4x4 matrix that we want to multiply with a vector (a 4x1 matrix).
迭代法中的雅克比迭代法是一种比较常用的方法,它公式简单,每迭代一次只需计算一次矩阵和向量乘法。
Yacobi method belongs to iteration methods, and is widely used. It has simple formula, which needs only time multiplication of matrix and rector for one iteration.
应用推荐