ClassesClasses | | Operators

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

convert_tuple_to_vector_1dconvert_tuple_to_vector_1dConvertTupleToVector1dConvertTupleToVector1d (Operator)

Name

convert_tuple_to_vector_1dconvert_tuple_to_vector_1dConvertTupleToVector1dConvertTupleToVector1d — Distribute the elements of a tuple to a vector.

Signature

convert_tuple_to_vector_1d( : : InputTuple, SubTupleLength : ResultVector)

Herror convert_tuple_to_vector_1d(double InputTuple, const Hlong SubTupleLength, double* ResultVector)

Herror T_convert_tuple_to_vector_1d(const Htuple InputTuple, const Htuple SubTupleLength, Htuple* ResultVector)

void ConvertTupleToVector1d(const HTuple& InputTuple, const HTuple& SubTupleLength, HTuple* ResultVector)

static void HOperatorSet.ConvertTupleToVector1d(HTuple inputTuple, HTuple subTupleLength, out HTuple resultVector)

Description

convert_tuple_to_vector_1dconvert_tuple_to_vector_1dConvertTupleToVector1dConvertTupleToVector1dConvertTupleToVector1d transforms a tuple into a vector variable. The input tuple InputTupleInputTupleInputTupleInputTupleinputTuple is split into sub-tuples each comprising of SubTupleLengthSubTupleLengthSubTupleLengthSubTupleLengthsubTupleLength elements. The sub-tuples are stored in the output vector ResultVectorResultVectorResultVectorResultVectorresultVector.

Parameters

InputTupleInputTupleInputTupleInputTupleinputTuple (input_control)  number(-array) HTupleHTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)

Input tuple.

SubTupleLengthSubTupleLengthSubTupleLengthSubTupleLengthsubTupleLength (input_control)  number HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Desired length of the resulting tuples in the output vector.

Default value: 1

ResultVectorResultVectorResultVectorResultVectorresultVector (output_control)  number-vector{1} HTupleHTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)

Output vector.

Result

If the values of the specified parameters are correct, convert_tuple_to_vector_1dconvert_tuple_to_vector_1dConvertTupleToVector1dConvertTupleToVector1dConvertTupleToVector1d returns 2 (H_MSG_TRUE). Otherwise an exception is raised and an error code returned.

See also

convert_vector_to_tupleconvert_vector_to_tupleConvertVectorToTupleConvertVectorToTupleConvertVectorToTuple

Module

Foundation


ClassesClasses | | Operators