Accord.Math.CSharpArrayFormatProvider.CSharpArrayFormatProvider C# (CSharp) Method

CSharpArrayFormatProvider() public method

Initializes a new instance of the CSharpMatrixFormatProvider class.
public CSharpArrayFormatProvider ( IFormatProvider innerProvider, bool includeTypeName = true, bool includeSemicolon = true ) : System
innerProvider IFormatProvider
includeTypeName bool
includeSemicolon bool
return System
        public CSharpArrayFormatProvider(IFormatProvider innerProvider,
            bool includeTypeName = true,
            bool includeSemicolon = true)
            : base(innerProvider)
        {
            FormatMatrixStart = includeTypeName ? "new double[] { " : "{ ";
            FormatMatrixEnd = includeSemicolon ? " };" : " }";
            FormatRowStart = "";
            FormatRowEnd = "";
            FormatColStart = "";
            FormatColEnd = "";
            FormatRowDelimiter = ", ";
            FormatColDelimiter = ", ";

            ParseMatrixStart = includeTypeName ? "new double[] {" : "{";
            ParseMatrixEnd = includeSemicolon ? "};" : "}";
            ParseRowStart = "";
            ParseRowEnd = "";
            ParseColStart = "";
            ParseColEnd = "";
            ParseRowDelimiter = "";
            ParseColDelimiter = ",";
        }
CSharpArrayFormatProvider