MatrixValue is a container for a 2D matrix of signed double precision floating point values.
- See also
- Value
-
Matrix
Example : declaration
Example : getting the contained values
Example : getting all values as a c-style array of double, rows-first indexed
double* DblArrayVal;
DblArrayVal = Val1.
data();
Example : setting the contained values
Example : conversion from string
StringVal.
set(
"[[3,5,2.8,6,17.999923],[1,1,1,1,1],[2.11,2.12,2.13,2.14,2.15]]");
StringVal.
set(
"[3,5,2.8,6,17.999923,1,1,1,1,1,2.11,2.12,2.13,2.14,2.15]");
Example : conversion to string
std::string StdStrVal = Val1.
toString();
|
| | MatrixValue () |
| |
| | MatrixValue (const MatrixValue &Val) |
| |
| | MatrixValue (MatrixValue &&Val) |
| |
| | MatrixValue (unsigned long ColsNbr, unsigned long RowsNbr) |
| |
| | MatrixValue (unsigned long ColsNbr, unsigned long RowsNbr, double InitValue) |
| |
| MatrixValue & | operator= (const Value &Other) override |
| |
| MatrixValue & | operator= (Value &&Other) override |
| |
| MatrixValue & | operator= (const MatrixValue &Other) |
| |
| MatrixValue & | operator= (MatrixValue &&Other) |
| |
| virtual | ~MatrixValue () |
| |
| Type | getType () const override |
| |
| Value * | clone () const override |
| |
| void | writeToStream (std::ostream &OutStm) const override |
| |
| void | writeQuotedToStream (std::ostream &OutStm) const override |
| |
| bool | isSimple () const override |
| |
| bool | isCompound () const override |
| |
| | Value ()=default |
| |
| | Value (const Value &)=default |
| |
| | Value (Value &&)=default |
| |
| virtual | ~Value ()=default |
| |
| virtual bool | convert (Value &) const |
| |
| bool | isDoubleValue () const |
| |
| const DoubleValue & | asDoubleValue () const |
| |
| DoubleValue & | asDoubleValue () |
| |
| bool | isIntegerValue () const |
| |
| const IntegerValue & | asIntegerValue () const |
| |
| IntegerValue & | asIntegerValue () |
| |
| bool | isBooleanValue () const |
| |
| const BooleanValue & | asBooleanValue () const |
| |
| BooleanValue & | asBooleanValue () |
| |
| bool | isStringValue () const |
| |
| const StringValue & | asStringValue () const |
| |
| StringValue & | asStringValue () |
| |
| bool | isNullValue () const |
| |
| const NullValue & | asNullValue () const |
| |
| NullValue & | asNullValue () |
| |
| bool | isVectorValue () const |
| |
| const VectorValue & | asVectorValue () const |
| |
| VectorValue & | asVectorValue () |
| |
| bool | isMatrixValue () const |
| |
| const MatrixValue & | asMatrixValue () const |
| |
| MatrixValue & | asMatrixValue () |
| |
| bool | isMapValue () const |
| |
| const MapValue & | asMapValue () const |
| |
| MapValue & | asMapValue () |
| |
| bool | isTreeValue () const |
| |
| const TreeValue & | asTreeValue () const |
| |
| TreeValue & | asTreeValue () |
| |
| std::string | toString () const |
| |
| | Matrix () |
| |
| | Matrix (const Matrix &Other) |
| |
| | Matrix (unsigned long ColsNbr, unsigned long RowsNbr) |
| |
| | Matrix (unsigned long ColsNbr, unsigned long RowsNbr, const double &InitValue) |
| |
| Matrix< double > & | operator= (const Matrix &Other) |
| |
| Matrix< double > & | operator= (Matrix &&Other) |
| |
| virtual | ~Matrix ()=default |
| |
| unsigned long | getColsNbr () const |
| |
| unsigned long | getRowsNbr () const |
| |
| unsigned long | getSize () const |
| |
| unsigned long | size () const |
| |
| double * | data () const |
| |
| void | setData (double *Data, unsigned long ColsNbr, unsigned long RowsNbr) |
| |
| double | getElement (unsigned long ColIndex, unsigned long RowIndex) const |
| |
| double | at (unsigned long ColIndex, unsigned long RowIndex) const |
| |
| double | get (unsigned long ColIndex, unsigned long RowIndex) const |
| |
| void | setElement (unsigned long ColIndex, unsigned long RowIndex, const double &Val) |
| |
| void | set (unsigned long ColIndex, unsigned long RowIndex, const double &Val) |
| |
| void | fill (const double &Val) |
| |
| void | clear () |
| |