It's time for my daily question :)

I'd like to be able to treat a row or column of a matrix as a vector. I can use matrix_range to slice a 1*n or n*1 submatrix from the matrix, but a 1*n matrix isn't quite the same as a vector in ViennaCL. In particular, I can't use the element_prod() function with a matrix.

Is there any way to convert a 1*n matrix_range into a vector or to slice a vector from a matrix? Alternatively, is there any way to compute the element_prod() of two 1*n matrices?