R 的資料科學線性代數
Eric Eager
Data Scientist at Pro Football Focus

A%*%B
[,1] [,2]
[1,] 2 5
[2,] 1 4
B%*%A
[,1] [,2]
[1,] 2 1
[2,] 5 4
A*B
[,1] [,2]
[1,] 0 2
[2,] 2 2
print(A)
[,1] [,2]
[1,] 1 2
[2,] 2 1
I <- diag(2)
print(I)
[,1] [,2]
[1,] 1 0
[2,] 0 1
I%*%A
[,1] [,2]
[1,] 1 2
[2,] 2 1
A%*%I
[,1] [,2]
[1,] 1 2
[2,] 2 1
方陣
矩陣的反矩陣
奇異矩陣
對角與三角矩陣
R 的資料科學線性代數