Click or drag to resize
Accord.NET (logo)

MatrixToStringT Method (T, Boolean, IMatrixFormatProvider)

Returns a String representation of a given matrix.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
public static string ToString<T>(
	this T[,] matrix,
	bool multiline,
	IMatrixFormatProvider provider
Request Example View Source


Type: T
The matrix.
Type: SystemBoolean
If set to true, the matrix will be written using multiple lines. If set to false, the matrix will be written in a single line.
Type: Accord.MathIMatrixFormatProvider
The IMatrixFormatProvider to be used when creating the resulting string. Default is to use CurrentCulture.

Type Parameters


Return Value

Type: String
A String that represents this instance.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also