Class MatrixFormatter
Defines how matrices are formatted and displayed, depending on the
chosen format representation.
Inheritance
System.Object
MatrixFormatter
Implements
System.ICustomFormatter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Numerics.Formats
Assembly: Mars.Numerics.dll
Syntax
public class MatrixFormatter : ICustomFormatter
Methods
| Improve this Doc 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 | |
System.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. |
System.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 .
|
Implements
System.ICustomFormatter