-1
, 나는 행렬의 행과 열 이름을 지정할 수 있습니다 :Eigen3 : 매트릭스의 행과 열 이름 R에서
A = matrix(
c(2, 4, 3, 1, 5, 7), # the data elements
nrow=2, # number of rows
ncol=3, # number of columns
byrow = TRUE) # fill matrix by rows
> A # print the matrix
[,1] [,2] [,3]
[1,] 2 4 3
[2,] 1 5 7
dimnames(A) = list(
c("row1", "row2"), # row names
c("col1", "col2", "col3")) # column names
> A # print A
col1 col2 col3
row1 2 4 3
row2 1 5 7
을 어떻게 C에서 Eigen3 매트릭스에 행과 열 이름을 부여 할 ++?