up previous next
RowMat --
single row matrix
|
RowMat(L: LIST): MAT
RowMat(R: RING, L: LIST): MAT |
This function returns the matrix whose only row consists of the
elements of the list
L.
The first form produces a matrix over
QQ if all entries in
L are of type INT or RAT. If
L contains any entries
of type RINGELEM then the matrix is over the ring these elements
belong to.
The second form produces a matrix over
R, and requires that
the elements of
L be INT, RAT or RINGELEM belonging to
R.
/**/ RowMat([3,4,5]);
matrix(QQ,
[[3, 4, 5]])
/**/ RowMat(QQ,[5,6,7]);
matrix(QQ,
[[5, 6, 7]])
|