# pivots(Matrix) -- list of pivot locations of a matrix

## Synopsis

• Function: pivots
• Usage:
pivots f
• Inputs:
• f,
• Outputs:
• a list, of positions (r,c) which are the positions of the non-zero lead terms (in each column)

## Description

 i1 : f = matrix{{1,3,0,0,3,5,2,0,0},{0,0,0,1,3,6,7,8,0}} o1 = | 1 3 0 0 3 5 2 0 0 | | 0 0 0 1 3 6 7 8 0 | 2 9 o1 : Matrix ZZ <--- ZZ i2 : pivots f o2 = {(0, 0), (0, 1), (1, 3), (1, 4), (1, 5), (1, 6), (1, 7)} o2 : List

This function is used in the current implementation of the Smith normal form.

## Caveat

Should be implemented in the engine.