public Vector ToVector()
{
if (Rows == 1)
return this[0, VectorType.Row].Copy();
if (Cols == 1)
return this[0, VectorType.Col].Copy();
throw new InvalidOperationException("Matrix conversion failed: More then one row or one column!");
}