From d579ae57a3ab7eca74469e5e253f80b78ab1a8ff Mon Sep 17 00:00:00 2001 From: MYP Date: Mon, 19 Oct 2020 18:44:51 +0800 Subject: [PATCH] =?UTF-8?q?Update=2012=20=E6=95=B0=E7=BB=84=E4=B8=8E?= =?UTF-8?q?=E7=A8=80=E7=96=8F=E7=9F=A9=E9=98=B5.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../12 数组与稀疏矩阵.md | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/DataStructureAndAlgorithm/12 数组与稀疏矩阵.md b/DataStructureAndAlgorithm/12 数组与稀疏矩阵.md index 43093c7..590e8ac 100644 --- a/DataStructureAndAlgorithm/12 数组与稀疏矩阵.md +++ b/DataStructureAndAlgorithm/12 数组与稀疏矩阵.md @@ -13,20 +13,20 @@ 磺 - Ӧһά -```math +$$ A=(a_0,a_1,\cdots,a_{n-1}) -``` +$$ - Ӧά -```math +$$ A_{m \times n} =\begin{bmatrix} a_{00}&a_{01} &\cdots &a_{0n-1}\\ a_{10}&a_{11} &\cdots &a_{1n-1}\\ \cdots& \cdots &\cdots &\cdots\\ a_{m-10}&a_{m-11}& \cdots &a_{m-1n-1}\\ \end{bmatrix} -``` +$$ ʾȺĹԣͬһͣ @@ -36,9 +36,9 @@ a_{m-10}&a_{m-11}& \cdots &a_{m-1n-1}\\ ### 1.2 Ĵ洢 -**1`$n$`άĶ** +**1$n$άĶ** -±`$n$`ɵΪ`$n$`ά顣 +±$n$ɵΪ$n$ά顣 磺 ```c @@ -280,18 +280,18 @@ static void Main(string[] args) **1ϡĶ** -`$A$`зԪصĸԶԶСԪصĸ`$A$`Ϊϡ +$A$зԪصĸԶԶСԪصĸ$A$Ϊϡ -```math +$$ A = \begin {bmatrix} 50 & 0 & 0 & 0\\ 10 & 0 & 20 & 0\\ 0 & 0 & 0 & 0\\ -30 & 0 & -60 & 5 \end{bmatrix} -``` +$$ öά洢̫˷Ѵ洢ռ䡣 @@ -376,7 +376,7 @@ namespace LinearStruct **1Խķװ** -![ͼ11 ϡͼ](https://img-blog.csdnimg.cn/20201019143656996.png) +![ͼ11 ϡ](https://img-blog.csdnimg.cn/20201019143656996.png) ```c using System; @@ -536,7 +536,6 @@ namespace LinearStruct throw new IndexOutOfRangeException(); DNode node = GetIndex(i, j); - if (node == null) { if (value != 0.0) @@ -640,7 +639,6 @@ namespace LinearStruct { if (a == null || b == null) throw new ArgumentNullException(); - return a.Multiply(b); } @@ -679,6 +677,7 @@ namespace LinearStruct ``` + ```c static void Main(string[] args) {