linalg(deprecated)
pivot
pivot about a matrix entry
Calling Sequence
Parameters
Description
Examples
pivot(A, i, j)
pivot(A, i, j, r..s)
A
-
matrix
i, j
positive integers
r..s
range of rows to be pivoted
Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Pivot], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The function pivot pivots the matrix A about A[i, j] which must be non-zero.
The function pivot(A, i, j) will add multiples of the ith row to every other row in the matrix, with the result that the (k, j)th entry of the matrix A is set to zero for all k not equal to i. That is, the jth column of the matrix will be all zeros, except for the (i, j)th element.
The call pivot(A, i, j, r..s) acts like pivot(A, i, j) except that only rows r through s are set to zero in the jth column. Rows not in the range r..s are not affected.
The command with(linalg,pivot) allows the use of the abbreviated form of this command.
with⁡linalg:
A≔matrix⁡4,4,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6
A≔1234567890123456
A≔pivot⁡A,2,1
A≔0458512556780−545−585−6250254565
A≔pivot⁡A,3,2
A≔002027402750591090−545−585−6250010272027
See Also
linalg(deprecated)[gausselim]
LinearAlgebra
Download Help Document