TMtxVecReport Class

Source: MtxVec.cs · Assembly: Dew.Math

public class TMtxVecReport

The report printer.

The most common way to debug an algorithm in the old days was to print the values of the variables to the screen or to the file. Today it is more common to use watches and tooltips to examine the values of variables. In some cases this two approaches do not work because of multithreading. Sometimes it is also desirable to have an algorithm return report on its convergence, like it is the case with optimization algorithms. For cases like this there is a global variable called Report declared in MtxVec.pas unit. Report is of a TMtxVecReport type and is derived from TStringStream. It has been extended with several new methods to support:

  • Saving the stream to TStream or a file.
  • Write the contents of TVec and TMtx objects to the stream (as text).
  • Specify the text formatting of the floating point values.

Properties

NameTypeDescription
DelimiterStringDelimiter used when converting matrices to text.
ImFormatStringThe format specifier for the imaginary part of the complex number.
ReFormatStringThe format specifier for the real part of the complex number.

Methods

NameDescription
ClearClears the stream.
NewLineInserts a new line.
PrintConvert the values of TVec and TMtx objects to text.
PrintCplxConvert TCplx values to text.
PrintCplxArrayConvert an array of TCplx values to text.
PrintMtxConvert the values of TMtx objects to text.
PrintSampleConvert double values to text.
PrintSampleArrayConvert an array of double values to text.
PrintVecConvert the values of TVec objects to text.
SaveToFileSave the strings to a text file.
WriteLineInserts a new line.