@ -1367,6 +1367,11 @@ namespace MathNet.Numerics.LinearAlgebra.Complex
return (SparseMatrix)leftSide.Modulus(rightSide);
}
public override string ToTypeString()
{
return string.Format("SparseMatrix {0}x{1}-Complex {2:P2} Filled", RowCount, ColumnCount, 100d * NonZerosCount / (RowCount * (double)ColumnCount));
@ -1034,5 +1034,10 @@ namespace MathNet.Numerics.LinearAlgebra.Complex
return ret;
#endregion
return string.Format("SparseVector {0}-Complex {1:P2} Filled", Count, NonZerosCount / (double)Count);
@ -1366,5 +1366,10 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32
return string.Format("SparseMatrix {0}x{1}-Complex32 {2:P2} Filled", RowCount, ColumnCount, 100d * NonZerosCount / (RowCount * (double)ColumnCount));
@ -1034,5 +1034,10 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32
return string.Format("SparseVector {0}-Complex32 {1:P2} Filled", Count, NonZerosCount / (double)Count);
@ -1391,5 +1391,10 @@ namespace MathNet.Numerics.LinearAlgebra.Double
return string.Format("SparseMatrix {0}x{1}-Double {2:P2} Filled", RowCount, ColumnCount, NonZerosCount / (RowCount * (double)ColumnCount));
@ -1068,5 +1068,10 @@ namespace MathNet.Numerics.LinearAlgebra.Double
return string.Format("SparseVector {0}-Double {1:P2} Filled", Count, NonZerosCount / (double)Count);
@ -1390,5 +1390,10 @@ namespace MathNet.Numerics.LinearAlgebra.Single
return string.Format("SparseMatrix {0}x{1}-Single {2:P2} Filled", RowCount, ColumnCount, NonZerosCount / (RowCount * (double)ColumnCount));
@ -1072,5 +1072,10 @@ namespace MathNet.Numerics.LinearAlgebra.Single
return string.Format("SparseVector {0}-Single {1:P2} Filled", Count, NonZerosCount / (double)Count);