Gets the default matrix representation, where each row is separated by a new line, and columns are separated by spaces.
Inheritance Hierarchy Namespace: Accord.MathAccord.Math (in Accord.Math.dll) Version: 3.8.0
Syntaxpublic sealed class DefaultArrayFormatProvider : MatrixFormatProviderBase
Public NotInheritable Class DefaultArrayFormatProvider Inherits MatrixFormatProviderBaseRequest Example View Source
The DefaultArrayFormatProvider type exposes the following members.
Constructors Properties Methods Name Description EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object.) GetFormatReturns an object that provides formatting services for the specified type. Currently, only
IMatrixFormatProvideris supported.
(Inherited from MatrixFormatProviderBase.) GetHashCodeServes as the default hash function.
(Inherited from Object.) GetTypeGets the Type of the current instance.
(Inherited from Object.) ToStringReturns a string that represents the current object.
(Inherited from Object.) Top Extension Methods Name Description HasMethodChecks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) IsEqualCompares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.) To(Type) Overloaded.Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) ToT Overloaded.Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) Top RemarksThis class can be used to convert to and from C# arrays and their string representation. Please see the example for details.
ExamplesConverting from an array matrix to a string representation:
double[] x = { 5, 6, 7, 8 }; string str = x.ToString(DefaultArrayFormatProvider.CurrentCulture); "5, 6, 7, 8"
Converting from strings to actual matrices:
string str = "5, 6, 7, 8"; double[] array = Matrix.Parse(str, DefaultArrayFormatProvider.InvariantCulture);See Also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4