## 節點結構Node structure

### 輸入的提升Promotion of inputs

• 如果較小的類型是純量值，則：If the smaller type is a scalar value, then:

純量值會複寫至大小等於較大輸入的向量。The value of the scalar is replicated into a vector that is equal in size to the larger input. 例如，不論運算為何，在最大運算輸入是三項目向量時，純量輸入 5.0 會變成向量 (5.0, 5.0, 5.0)。For example, the scalar input 5.0 becomes the vector (5.0, 5.0, 5.0) when the largest input of the operation is a three-element vector, regardless of what the operation is.

• 如果較小的類型是向量，而且運算是乘法 (*、/、% 等等)，則：If the smaller type is a vector, and the operation is multiplicative (*, /, %, and so on), then:

向量的值會複製至大小等於較大輸入之向量的前置項目，而且尾端項目設為 1.0。The value of the vector is copied into the leading elements of a vector that is equal in size to the larger input, and the trailing elements are set to 1.0. 例如，向量輸入 (5.0, 5.0) 乘上四項目向量時，會變成向量 (5.0, 5.0, 1.0, 1.0)。For example, the vector input (5.0, 5.0) becomes the vector (5.0, 5.0, 1.0, 1.0) when it's multiplied by a four-element vector. 這會使用乘法單位 1.0 保留輸出的第三個和第四個項目。This preserves the third and fourth elements of the output by using the multiplicative identity, 1.0.

• 如果較小的類型是向量，而且運算是加法 (+、- 等等)，則：If the smaller type is a vector, and the operation is additive (+, -, and so on), then:

向量的值會複製至大小等於較大輸入之向量的前置項目，而且尾端項目設為 0.0。The value of the vector is copied into the leading elements of a vector that is equal in size to the larger input, and the trailing elements are set to 0.0. 例如，向量輸入 (5.0, 5.0) 加上四項目向量時，會變成向量 (5.0, 5.0, 0.0, 0.0)。For example, the vector input (5.0, 5.0) becomes the vector (5.0, 5.0, 0.0, 0.0) when it's added to a four-element vector. 這會使用加法單位 0.0 保留輸出的第三個和第四個項目。This preserves the third and fourth elements of the output by using the additive identity, 0.0.