名称

convert_vector_to_tuple - 将向量的元素连接到单个元组。

用法

convert_vector_to_tuple( : : InputVector : ResultTuple)

描述

convert_vector_to_tuple将一个向量转换成一个元组。 输入向量InputVector的元素被连接并存储在输出元组ResultTuple中。 如果InputVector具有2或更大的维度,则其元素将在深度优先搜索中收集。 例如,输入向量{{{1},{2}},{{3},{4}}}'将被转换为结果元组[1,2,3,4]。

参数

InputVector (input_control)   number-vector → (real / integer / string)
输入向量

ResultTuple (output_control) real(-array) → (real / integer / string)
输出元组

结果

如果指定参数的值正确,则convert_vector_to_tuple返回2(H_MSG_TRUE)。 否则会引发异常并返回错误代码。

也可以看看

convert_tuple_to_vector_1d

模块

Foundation

HDevelop例程

vector_variables.hdev              使用向量变量
message_queue_producer_consumer.hdev     使用消息队列在线程之间交换数据(生产者消费者)
align_measurements_multithreading.hdev   使用多线程并行检查剃刀刀片

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-07
  • 2021-09-04
  • 2022-02-17
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案