pivot about a matrix entry
pivot(A, i, j)
pivot(A, i, j, 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.
A ≔ matrix⁡4,4,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6
A ≔ pivot⁡A,2,1
A ≔ pivot⁡A,3,2
Download Help Document
What kind of issue would you like to report? (Optional)