Class MatrixFormatter
Defines how matrices are formatted and displayed, depending on the chosen format representation.
Inheritance
System.Object
MatrixFormatter
Namespace: ISynergy.Framework.Mathematics.Formats.Base
Assembly: ISynergy.Framework.Mathematics.dll
Syntax
public class MatrixFormatter : ICustomFormatter
Methods
View SourceFormat(String, Array, IMatrixFormatProvider)
Converts a jagged or multidimensional array into a System.String representation.
Declaration
public static string Format(string format, Array matrix, IMatrixFormatProvider formatProvider)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | |
Array | matrix | |
IMatrixFormatProvider | formatProvider |
Returns
Type | Description |
---|---|
System.String |
Format(String, Object, IFormatProvider)
Converts the value of a specified object to an equivalent string representation using specified formatting information.
Declaration
public string Format(string format, object arg, IFormatProvider formatProvider)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | A format string containing formatting specifications. |
System.Object | arg | An object to format. |
IFormatProvider | formatProvider | An System.IFormatProvider object that supplies format information about the current instance. |
Returns
Type | Description |
---|---|
System.String | The string representation of the value of |
ParseJagged(String, IMatrixFormatProvider)
Converts a matrix represented in a System.String into a jagged array.
Declaration
public static double[][] ParseJagged(string str, IMatrixFormatProvider provider)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | |
IMatrixFormatProvider | provider |
Returns
Type | Description |
---|---|
System.Double[][] |
ParseMultidimensional(String, IMatrixFormatProvider)
Converts a matrix represented in a System.String into a multi-dimensional array.
Declaration
public static double[, ] ParseMultidimensional(string str, IMatrixFormatProvider provider)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | |
IMatrixFormatProvider | provider |
Returns
Type | Description |
---|---|
System.Double[,] |