Class MatrixFormatter
Defines how matrices are formatted and displayed, depending on the
chosen format representation.
Inheritance
ICustomFormatter
MatrixFormatter
Namespace: Mars.Numerics.Formats
Assembly: Mars.Numerics.dll
Syntax
public class MatrixFormatter : ICustomFormatter
Methods
Format(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 arg ,
formatted as specified by format and
formatProvider .
|