-
Notifications
You must be signed in to change notification settings - Fork 9
MGroup.LinearAlgebra.Output.Formatting
Describes how entries of a 1D array, list or vector are separated during output. Authors: Serafeim Bakalakos
public class MGroup.LinearAlgebra.Output.Formatting.Array1DFormat
Properties
Type | Name | Summary |
---|---|---|
String |
End | A string to write after all entries. |
String |
Separator | A string to write between two consecutive entries. |
String |
Start | A string to write written before all entries. |
Static Fields
Type | Name | Summary |
---|---|---|
Array1DFormat |
Brackets | E.g. [ 1 2 3 ] |
Array1DFormat |
PlainHorizontal | E.g. 1 2 3 |
Array1DFormat |
PlainVertical | E.g. 1 2 3 |
Describes how entries of a 2D array or matrix are separated during output. Authors: Serafeim Bakalakos
public class MGroup.LinearAlgebra.Output.Formatting.Array2DFormat
Properties
Type | Name | Summary |
---|---|---|
String |
ArrayEnd | A string to write after everything else. |
String |
ArrayStart | A string to write before everything else. |
String |
ColSeparator | A string to write between two consecutive entries of the same row. |
String |
RowEnd | A string to write after the entries of each row. |
String |
RowSeparator | A string to write between two consecutive rows. |
String |
RowStart | A string to write before the entries of each row. |
Static Fields
Type | Name | Summary |
---|---|---|
Array2DFormat |
Brackets | E.g. [ [ 1 2 3 ] [ 4 5 6 ] ] |
Array2DFormat |
Plain | E.g. 1 2 3 4 5 6 |
Numbers will be displayed in scientific (exponential) format: e.g. -1.05E+003. The caller can choose how many decimal will be displayed and the resulting output will be aligned. Authors: Serafeim Bakalakos
public class MGroup.LinearAlgebra.Output.Formatting.ExponentialFormat
: INumericFormat
Properties
Type | Name | Summary |
---|---|---|
Int32 |
NumDecimalDigits | Decimal digits to display, not counting the decimal separator (. or ,). |
Methods
Type | Name | Summary |
---|---|---|
String |
GetRealNumberFormat() | Returns a tring that will be used as a template for formatting numbers during output. |
For each number, a fixed number of decimal points are displayed, e.g -1234.56. Also controls alignment by reserving enough space for the max number of integer digits expected. Authors: Serafeim Bakalakos
public class MGroup.LinearAlgebra.Output.Formatting.FixedPointFormat
: INumericFormat
Properties
Type | Name | Summary |
---|---|---|
Int32 |
MaxIntegerDigits | Not counting the sign (+ or -) or the decimal separator (. or ,). This property is used to reserve enough space, so that matrix/vector entries in the same column can be aligned. If the MGroup.LinearAlgebra.Output.Formatting.FixedPointFormat.MaxIntegerDigits chosen is not enough, then the alignment will be destroyed, but the number will be displayed in full. If this is unwanted and the maximum number of integer digits of the entries of the matrix/vector cannot be guessed, consider using MGroup.LinearAlgebra.Output.Formatting.ExponentialFormat instead. |
Int32 |
NumDecimalDigits | Decimal digits to display, not counting the decimal separator (. or ,). |
Methods
Type | Name | Summary |
---|---|---|
String |
GetRealNumberFormat() | Returns a tring that will be used as a template for formatting numbers during output. |
Most compact numeric format. Output numbers will be displayed in the default precision. However the matrix rows and vertical vector entries will not be aligned. Authors: Serafeim Bakalakos
public class MGroup.LinearAlgebra.Output.Formatting.GeneralNumericFormat
: INumericFormat
Methods
Type | Name | Summary |
---|---|---|
String |
GetRealNumberFormat() | Returns a tring that will be used as a template for formatting numbers during output. |
Specifies formatting and alignment for System.Double
entries of a matrix or vector. Authors: Serafeim Bakalakos
public interface MGroup.LinearAlgebra.Output.Formatting.INumericFormat
Methods
Type | Name | Summary |
---|---|---|
String |
GetRealNumberFormat() | Returns a tring that will be used as a template for formatting numbers during output. |
Data transfer object for the internal indexing and value arrays of a sparse matrix and their titles during output. These arrays cannot be mutated through a MGroup.LinearAlgebra.Output.Formatting.SparseFormat
object. Authors: Serafeim Bakalakos
public class MGroup.LinearAlgebra.Output.Formatting.SparseFormat
Properties
Type | Name | Summary |
---|---|---|
Dictionary<String, IReadOnlyList<Int32>> |
RawIndexArrays | Indexing arrays of the sparse matrix and their titles. |
IReadOnlyList<Double> |
RawValuesArray | The value array of the sparse matrix. |
String |
RawValuesTitle | The title of the value array of the sparse matrix. |