Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Matrix of vectors

Hi.

Suppose that I have a collection of vectors $v_1, \ldots, v_n \in \mathbb{R}^3$ and I wish to compute all cross products $v_i \times v_j \in \mathbb{R}^3$ where $1 \leq i < j \leq n$. Is it possible to store the output in a matrix, that is can matrices in Sage accept vectors as entries?

Matrix of vectors

Hi.

Suppose that I have a collection of vectors $v_1, \ldots, v_n \in \mathbb{R}^3$ and I wish to compute all cross products $v_i \times v_j \in \mathbb{R}^3$ where $1 \leq i < j \leq n$. Is it possible to store the output in a matrix, that is i.e. can matrices I form a matrix M in Sage accept vectors as entries?where $M(i,j) = v_i \times v_j$?