# mutableMatrix -- make a mutable matrix

## Synopsis

• Usage:
mutableMatrix m
• Inputs:
• Optional inputs:
• Dense => ..., default value true, whether the encoding of the matrix should be dense or not: see MutableMatrix
• Outputs:
• a new mutable matrix whose entries are obtained from m. If m is a list, it should be a doubly nested list (table) of ring elements, all from the same ring.

## Description

 i1 : f = mutableMatrix {{1,2,3,4}} o1 = | 1 2 3 4 | o1 : MutableMatrix i2 : f_(0,2) o2 = 3 i3 : f_(0,2) = 33 o3 = 33 i4 : f o4 = | 1 2 33 4 | o4 : MutableMatrix i5 : R = QQ[a..z] o5 = R o5 : PolynomialRing i6 : mutableMatrix genericMatrix(R,3,3) o6 = | a d g | | b e h | | c f i | o6 : MutableMatrix

## Ways to use mutableMatrix :

• "mutableMatrix(List)"
• "mutableMatrix(Matrix)"
• "mutableMatrix(MutableMatrix)"
• mutableMatrix(Ring,ZZ,ZZ) -- make a mutable matrix filled with zeroes
• "mutableMatrix(RingFamily,ZZ,ZZ)" -- see mutableMatrix(Ring,ZZ,ZZ) -- make a mutable matrix filled with zeroes

## For the programmer

The object mutableMatrix is .