Detailed description |
I would expect the result of all four lines below to give myrow and mycol as row and column names, but the first two lines give only row name and the last two lines give only column name (Windows 10 x64, R x64 4.2.0 Pre-release, Matrix_1.3-4).
Matrix(0, dimnames = list("myrow", NULL)) %*% Matrix(0, dimnames = list(NULL, "mycol"))
Matrix(1, dimnames = list("myrow", NULL)) %*% Matrix(0, dimnames = list(NULL, "mycol"))
Matrix(0, dimnames = list("myrow", NULL)) %*% Matrix(1, dimnames = list(NULL, "mycol"))
Matrix(1, dimnames = list("myrow", NULL)) %*% Matrix(1, dimnames = list(NULL, "mycol")) |
|