D <- duplication.matrix( 3 )
A <- matrix( c( 1, 2, 3,
2, 3, 4,
3, 4, 5), nrow=3, byrow=TRUE )
vecA <- vec( A )
vechA<- vech( A )
y <- D %*% vechA
print( y )
print( vecA )
Run the code above in your browser using DataLab