public void SetNullEntriesToZero()
{
for (int i = 0; i < this.NumberOfRows; i++)
{
for (int j = 0; j < this.NumberOfColumns; j++)
{
//Replace any null elements with a 3x3 zero matrix
if (ReferenceEquals(this.GetElement(i, j), null))
{
this.SetElement(i, j, new Matrix(3, 3));
}
}
}
}