title: Create vector from elements other than diagonal ones
body: <p>I would like to create a column vector from the elements of a matrix <code>A</code> of size <code>(3,3)</code> that are not on the diagonal. Thus, I would have <code>6</code> elements in that output vector.  How can I do this?</p>