Skip to content

Opening book details…

About this document

Linear Algebra Concepts in R by Juan is a document available to read on EtoBox.

Here are the key differences between A %*% a and A * a: - A %*% a performs matrix multiplication, where A is multiplied by a as a vector. This returns a matrix with as many rows as A and 1 column. - A * a performs element-wise multiplication, treating a as a vector with as many elements as the number of columns in A. This returns a matrix with the same dimensions as A. So in summary: - A %*% a does matrix multiplication - A * a does element-wise multiplication 3.7 Vectors as matrices A vector can b

Author
Juan
Language
EN