IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Public Member Functions | |
Script_Numeric () | |
override void | Script_AddCommands (ICommandLineApplicationInterpreter interpreter, SortedList< string, string > helpStrings) |
Adds commands to the internal interpreter. More... | |
string | TestScriptArguments (string[] arguments) |
Simple test, just writes script arguments to console. More... | |
string | TestCustom (string[] arguments) |
Test of matrix operations (decompositions, etc.). More... | |
string | TestMatrixOperations (string[] arguments) |
Test of matrix operations (decompositions, etc.). More... | |
string | TestRealFunction (string[] arguments) |
Test of real functions of one variable. More... | |
string | TestDifferentiation (string[] arguments) |
Test of numerical differentiation. More... | |
string | TestLinearApproximation (string[] arguments) |
Test of linear approximations. More... | |
string | TestMovingLeastSquares (string[] arguments) |
Test of linear approximations. More... | |
string | TestPerformanceTests (string[] arguments) |
Test of various performance tests. More... | |
string | TestTabResults (string[] arguments) |
Test of tables of results (e.g. tables of approximated values or of optimization analysis results). More... | |
string | TestParallelJobs (string[] arguments) |
Test of parallel jobs. More... | |
string | TestSampling (string[] arguments) |
Test of various sampling algorithms. More... | |
string | TestOptAlglib (string[] arguments) |
Test of AlgLib optimization algorithms. More... | |
![]() | |
LoadableScriptBase () | |
Argument-less constructor. If argument-less constructor is called then initialization is not performed and will be performed later. More... | |
string | Run (string[] arguments) |
Performs the action of this object. Override this in derived classes! More... | |
void | Initialize (string[] arguments) |
Initializes the object. If not called explicitly, this method is automatically called at the first call to the Run method. More... | |
virtual string | Script_DefaultInitialize (string[] arguments) |
Default initialization method for scripts. More... | |
virtual string | Script_DefaultRun (string[] arguments) |
Default run method for the script. Can be used when only installed commands are run by hte script. More... | |
virtual ICommandLineApplicationInterpreter | Script_CreateInterpreterWithoutCommands () |
Creates and returns an interpreter that can be used as script's internal interpreter for running script's commands. More... | |
delegate string | Script_CommandDelegate (string[] args) |
Delegate for commands that are installed on script's internal interpreter (property Script_Interpreter). More... | |
void | Script_AddCommand (string commandName, Script_CommandDelegate command, string helpString) |
Adds a new internal script command under specified name to the internal interpreter of the current script object. More... | |
virtual void | Script_AddCommand (ICommandLineApplicationInterpreter interpreter, SortedList< string, string > helpStrings, string commandName, Script_CommandDelegate command, string helpString) |
Adds a new internal script command under specified name to the internal interpreter of the current script object. More... | |
string | Script_GetHelpString (string scriptCommandName) |
Returns help string for internal script command with specified name, or null if help string is not installed for such a command. More... | |
void | Script_PrintCommandsHelp () |
Prits help for the installed internal commands of the script. More... | |
virtual bool | Script_ContainsCommand (string commandName) |
Returns true if the internal script's interpreter contains a command with specified name, false otherwise. More... | |
virtual bool | Script_ContainsScriptCommand (string commandName) |
Returns true if the specified command is script command (i.e. its first argument is command-name and it is run through the Script_CommandAdapter object). More... | |
virtual void | Script_RemoveCommand (string commandName) |
Removes the specified internal script command from the internal interpreter of the current scripting object. More... | |
virtual void | Script_RemoveAllCommands () |
Removes ALL internal script commands from the internal interpreter of the current scripting object. More... | |
string | Script_Run (string[] arguments) |
Runs internal script command. More... | |
string | Script_Run (string commandName, params string[] otherArguments) |
Runs internal script command. More... | |
virtual void | Script_PrintArguments (string messageString, string[] arguments) |
Prints the specified array of string arguments (usually passed as command-line arguments). More... | |
Public Attributes | |
const string | ConstTestScriptArguments = "Test1" |
Test of running the script, writes arguments. More... | |
const string | ConstHelpTestScriptArguments = "Performs test , outputs script arguments." |
const string | ConstCustom = "CustomTest" |
Custom test. More... | |
const string | ConstHelpCustom = "Custom test." |
const string | ConstMatrixOperations = "MatrixOperations" |
Tests of matrix operations. More... | |
const string | ConstHelpMatrixOperations = "Tests of matrix operations." |
const string | ConstPerformanceTests = "PerformanceTests" |
Test of real functions of one variable. More... | |
const string | ConstHelpPerformanceTests = "Tests of various performance tests." |
const string | ConstRealFunction = "RealFunction" |
Test of real functions of one variable. More... | |
const string | ConstHelpRealFunction = "Tests of real function of one variable." |
const string | ConstDifferentiation = "Differentiation" |
Test of numerical differentiation. More... | |
const string | ConstHelpDifferentiation = "Tests of numerical differentiation." |
const string | ConstLinearApproximation = "LinearApproximation" |
Test of linear approximation. More... | |
const string | ConstHelpLinearApproximation = "Tests of linear approximations." |
const string | ConstMovingLeastSquares = "MovingLeastSquares" |
Test of moving least squares. More... | |
const string | ConstHelpMovingLeastSquares = "Tests of the moving least squares method." |
const string | ConstTabResults = "TabResults" |
Test of result tables. More... | |
const string | ConstHelpTabResults = "Demonstrations of linear reault tables." |
const string | ConstParallelJobs = "ParallelJobs" |
Tests parallel job dispatcher. More... | |
const string | ConstHelpParallelJobs = "Testing of parallel job dispatcher." |
const string | ConstSampling = "Sampling" |
Tests sampling algorithms. More... | |
const string | ConstHelpSampling = "Testing of various sampling algorithms." |
const string | ConstOptAlgLib = "OptAlgLib" |
Tests Alglib optimization algorithms. More... | |
const string | ConstHelpOptAlgLib = "Testing of AlgLib's optimization algorithms." |
![]() | |
const string | ConstDefaultHelp = "Help" |
Default command name for help. More... | |
const string | ConstHelpDefaultUniversal = "?" |
Universal name of the help command. More... | |
const string | ConstDefaultTestScrip = "TestScript" |
Default command name for test method. More... | |
Protected Member Functions | |
override void | InitializeThis (string[] arguments) |
Initializes the current object. More... | |
override string | RunThis (string[] arguments) |
Runs action of the current object. More... | |
![]() | |
delegate string | CommandMethod (string commandName, string[] args) |
Delegate for internal command methods. More... | |
ICommandLineApplicationInterpreter | Script_CreateInterpreter () |
Creates and returns an interpreter that can be used as script's internal interpreter for running script's commands. More... | |
virtual string | Script_CommandHelp (string[] arguments) |
Prints help. More... | |
virtual string | Script_CommandTestScript (string[] arguments) |
Prints help. More... | |
Additional Inherited Members | |
![]() | |
string | _embeddedCommandName = null |
int | _outputLevel = DefaultOutputLevel |
ICommandLineApplicationInterpreter | _script_interpreter |
![]() | |
string | EmbeddedCommandName [get, set] |
Command that was used to launch the current embedded application script. More... | |
object | Lock [get] |
This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock. More... | |
string[] | InitializationArguments [get, set] |
Arguments used by the initialization method. WARNING: arguments can only be set before initialization is performed. Initialization is performed either implicitly at the first call to the Run method or explicitly by calling the Initialize method. More... | |
virtual bool | IsInitialized [get, protected set] |
Whether the object has been initialized or not. More... | |
static int | DefaultOutputLevel [get, set] |
int | OutputLevel [get, set] |
Level of output to console produced by some operations of the current object. More... | |
virtual ICommandLineApplicationInterpreter | Script_Interpreter [get, protected set] |
Script's internal interpreter that takes care for execution of installed internal commands. More... | |
SortedList< string, string > | Script_CommandHelpStrings [get] |
Contains help strings associated with script commands installed on interpreter. More... | |
![]() | |
string | EmbeddedCommandName [get, set] |
Command that was used to launch the current embedded application script. More... | |
string[] | InitializationArguments [get, set] |
Arguments used by the initialization method. More... | |
bool | IsInitialized [get] |
Whether the object has been initialized or not. More... | |
![]() | |
object | Lock [get] |
|
inline |
|
inlineprotectedvirtual |
Initializes the current object.
Implements IG.Lib.LoadableScriptBase.
|
inlineprotectedvirtual |
Runs action of the current object.
arguments | Command-line arguments of the action. |
Implements IG.Lib.LoadableScriptBase.
|
inlinevirtual |
Adds commands to the internal interpreter.
interpreter | Interpreter where commands are executed. |
helpStrings | List containg help strings. |
Reimplemented from IG.Lib.LoadableScriptBase.
|
inline |
Simple test, just writes script arguments to console.
arguments | Array of command-line arguments. |
|
inline |
Test of matrix operations (decompositions, etc.).
arguments | Array of command-line arguments. |
|
inline |
Test of matrix operations (decompositions, etc.).
arguments | Array of command-line arguments. |
References IG.Num.SpeedTestCpu.ExampleMathNetNumericsEVD(), IG.Num.MatrixBase.SetRandomSymmetricPositiveDefinite(), IG.Num.SpeedTestCpu.TestComputationalTimesCholesky(), IG.Num.SpeedTestCpu.TestComputationalTimesLU(), IG.Old.SpeedTestCpuOld.TestComputationalTimesLU_MathNet(), IG.Num.SpeedTestCpu.TestComputationalTimesQR(), IG.Old.SpeedTestCpuOld.TestComputationalTimesQR_MathNet(), and IG.Num.MatrixBaseDev.TestMatrixDecompositions().
|
inline |
Test of real functions of one variable.
arguments | Array of command-line arguments. |
References IG.Num.RealFunctionBase.ExampleTests(), and IG.Num.RealFunction.TestSpeed().
|
inline |
Test of numerical differentiation.
arguments | Array of command-line arguments. |
References IG.Num.Numeric.TestDifferentiation().
|
inline |
Test of linear approximations.
arguments | Array of command-line arguments. |
References IG.Num.LinearBasis.Example().
|
inline |
Test of linear approximations.
arguments | Array of command-line arguments. |
|
inline |
Test of various performance tests.
arguments | Array of command-line arguments. |
References IG.Lib.ThreadPerformanceTest.Example().
|
inline |
Test of tables of results (e.g. tables of approximated values or of optimization analysis results).
arguments | Array of command-line arguments. |
References IG.Num.AnalysisTable.ExampleTableFactors().
|
inline |
Test of parallel jobs.
arguments | Array of command-line arguments. |
References IG.Num.ParallelJobContainerBase.DefaultOutputLevel, and IG.Num.ParallelJobContainerBase.TestPerformance().
|
inline |
Test of various sampling algorithms.
arguments | Array of command-line arguments. |
References IG.Num.SamplerUnitBallRandomFromCube.TestSamplingSpeed().
|
inline |
Test of AlgLib optimization algorithms.
arguments | Array of command-line arguments. |
References IG.Num.TestAlgLibBase2008.DefaultOutputLevel, and IG.Num.TestAlglibOld2008.TestLbfgsAlglibOld().
const string IG.Script.Script_Numeric.ConstTestScriptArguments = "Test1" |
Test of running the script, writes arguments.
Referenced by TestOpt.IGLibShellExtMainProgram.TestMain(), and TestOpt.IGLibShellMainProgram.TestMain().
const string IG.Script.Script_Numeric.ConstHelpTestScriptArguments = "Performs test , outputs script arguments." |
const string IG.Script.Script_Numeric.ConstCustom = "CustomTest" |
Custom test.
Referenced by TestOpt.IGLibShellExtMainProgram.TestMain(), and TestOpt.IGLibShellMainProgram.TestMain().
const string IG.Script.Script_Numeric.ConstHelpCustom = "Custom test." |
const string IG.Script.Script_Numeric.ConstMatrixOperations = "MatrixOperations" |
Tests of matrix operations.
Referenced by TestOpt.IGLibShellExtMainProgram.TestMain(), and TestOpt.IGLibShellMainProgram.TestMain().
const string IG.Script.Script_Numeric.ConstHelpMatrixOperations = "Tests of matrix operations." |
const string IG.Script.Script_Numeric.ConstPerformanceTests = "PerformanceTests" |
Test of real functions of one variable.
Referenced by TestOpt.IGLibShellExtMainProgram.TestMain(), and TestOpt.IGLibShellMainProgram.TestMain().
const string IG.Script.Script_Numeric.ConstHelpPerformanceTests = "Tests of various performance tests." |
const string IG.Script.Script_Numeric.ConstRealFunction = "RealFunction" |
Test of real functions of one variable.
Referenced by TestOpt.IGLibShellExtMainProgram.TestMain(), and TestOpt.IGLibShellMainProgram.TestMain().
const string IG.Script.Script_Numeric.ConstHelpRealFunction = "Tests of real function of one variable." |
const string IG.Script.Script_Numeric.ConstDifferentiation = "Differentiation" |
Test of numerical differentiation.
Referenced by TestOpt.IGLibShellExtMainProgram.TestMain(), and TestOpt.IGLibShellMainProgram.TestMain().
const string IG.Script.Script_Numeric.ConstHelpDifferentiation = "Tests of numerical differentiation." |
const string IG.Script.Script_Numeric.ConstLinearApproximation = "LinearApproximation" |
Test of linear approximation.
Referenced by TestOpt.IGLibShellExtMainProgram.TestMain(), and TestOpt.IGLibShellMainProgram.TestMain().
const string IG.Script.Script_Numeric.ConstHelpLinearApproximation = "Tests of linear approximations." |
const string IG.Script.Script_Numeric.ConstMovingLeastSquares = "MovingLeastSquares" |
Test of moving least squares.
Referenced by TestOpt.IGLibShellExtMainProgram.TestMain(), and TestOpt.IGLibShellMainProgram.TestMain().
const string IG.Script.Script_Numeric.ConstHelpMovingLeastSquares = "Tests of the moving least squares method." |
const string IG.Script.Script_Numeric.ConstTabResults = "TabResults" |
Test of result tables.
Referenced by TestOpt.IGLibShellExtMainProgram.TestMain(), and TestOpt.IGLibShellMainProgram.TestMain().
const string IG.Script.Script_Numeric.ConstHelpTabResults = "Demonstrations of linear reault tables." |
const string IG.Script.Script_Numeric.ConstParallelJobs = "ParallelJobs" |
Tests parallel job dispatcher.
Referenced by TestOpt.IGLibShellExtMainProgram.TestMain(), and TestOpt.IGLibShellMainProgram.TestMain().
const string IG.Script.Script_Numeric.ConstHelpParallelJobs = "Testing of parallel job dispatcher." |
const string IG.Script.Script_Numeric.ConstSampling = "Sampling" |
Tests sampling algorithms.
Referenced by TestOpt.IGLibShellExtMainProgram.TestMain(), and TestOpt.IGLibShellMainProgram.TestMain().
const string IG.Script.Script_Numeric.ConstHelpSampling = "Testing of various sampling algorithms." |
const string IG.Script.Script_Numeric.ConstOptAlgLib = "OptAlgLib" |
Tests Alglib optimization algorithms.
Referenced by TestOpt.IGLibShellExtMainProgram.TestMain(), and TestOpt.IGLibShellMainProgram.TestMain().
const string IG.Script.Script_Numeric.ConstHelpOptAlgLib = "Testing of AlgLib's optimization algorithms." |