scalar operations for dense vectors