diagonalForm(k,a)
diagonalForm(k,L)
Given a sequence of elements $a_1,\ldots,a_n \in k$ we can form the diagonal form $\langle a_1,\ldots,a_n\rangle$ defined to be the block sum of each of the rank one forms $\langle a_i \rangle \colon k \times k \to k$ $(x,y) \mapsto a_i xy$.
|
Inputting a ring element, an integer, or a rational instead of a sequence will produce a rank one form instead. For instance:
|
|
The object diagonalForm is a method function.