|
|
||||||
|
faudes::Vector Class Reference Detailed DescriptionVector of scalars. This is a wrapper for a plain C array to provide a faudes style interface, incl. token IO, access to individual entries. There is also access to the internal C++ array. Note that libFAUDES does not implement any mathematical operations on vectors. For this purpose, one should employ some external library (e.g. BOOST, alglib, ...) via an appropriate set of wrapper functions. The token format is as follows: <Vector count="5">
1.50 -80 17 90 100
</Vector>
Definition at line 391 of file hyb_parameter.h.
Constructor & Destructor Documentation◆ Vector() [1/4]
Default constructor - sets dimension to 0. Definition at line 343 of file hyb_parameter.cpp. ◆ Vector() [2/4]
◆ Vector() [3/4]
Copy-constructor. Definition at line 366 of file hyb_parameter.cpp. ◆ Vector() [4/4]
Construct from file. Definition at line 374 of file hyb_parameter.cpp. ◆ ~Vector()
Destructor. Definition at line 383 of file hyb_parameter.cpp. Member Function Documentation◆ At() [1/2]
Get entry.
Definition at line 455 of file hyb_parameter.cpp. ◆ At() [2/2]
Set entry.
Definition at line 465 of file hyb_parameter.cpp. ◆ CArray() [1/2]
Set from std C array. This version takes a copy of the provided data.
Definition at line 497 of file hyb_parameter.cpp. ◆ CArray() [2/2]
Access std C array. Note that for zero dimension, this function returns NULL.
Definition at line 505 of file hyb_parameter.cpp. ◆ Clear()
Clear all. Sets dimension to 0 Reimplemented from faudes::Type. Definition at line 410 of file hyb_parameter.cpp. ◆ Dimension() [1/2]
Set dimension. This will invalidate the entries.
Definition at line 424 of file hyb_parameter.cpp. ◆ Dimension() [2/2]
◆ DoAssign()Assign from other vector.
Definition at line 389 of file hyb_parameter.cpp. ◆ DoEqual()
Test equality.
Definition at line 401 of file hyb_parameter.cpp. ◆ DoRead()
Read from TokenReader, see Type::Read for public wrappers. The method invokes TokenReader::ReadBegin() to seek the specified section, reads subsequent symbols, and calls matching TokenReader::ReadEnd(). If no section is specified, the section is assumed to start at the current position of the token stream. If the current position is no begin token, the section "Vector" is read.
Reimplemented from faudes::Type. Definition at line 539 of file hyb_parameter.cpp. ◆ DoSWrite()
Write statistic info to TokenWriter, see Type::SWrite for public wrapper.
Reimplemented from faudes::Type. Definition at line 532 of file hyb_parameter.cpp. ◆ DoWrite()
Write to TokenWriter, see Type::Write for public wrappers.
Reimplemented from faudes::Type. Definition at line 511 of file hyb_parameter.cpp. ◆ Ones()
Set to ones. Either provide dimension, or use the default -1 to maintain the dimension.
Definition at line 448 of file hyb_parameter.cpp. ◆ operator()() [1/2]
Cosmetic access operator.
Definition at line 486 of file hyb_parameter.cpp. ◆ operator()() [2/2]
Cosmetic access operator.
Definition at line 476 of file hyb_parameter.cpp. ◆ Size()
Get size. Gets over all number of entries. Same as Dimension().
Definition at line 418 of file hyb_parameter.cpp. ◆ Zero()
Set to zero vector. Either provide dimension, or use the default -1 to maintain the dimension.
Definition at line 441 of file hyb_parameter.cpp. Member Data Documentation◆ mDim
Definition at line 566 of file hyb_parameter.h. ◆ mpData
Definition at line 569 of file hyb_parameter.h. The documentation for this class was generated from the following files: libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen |