array of size different than 1 to scalar

Chinese translation: 标量

GLOSSARY ENTRY (DERIVED FROM QUESTION BELOW)
English term or phrase:scalar
Chinese translation:标量
Entered by: Shang

02:50 Jun 5, 2004
English to Chinese translations [PRO]
Tech/Engineering - Computers: Software
English term or phrase: array of size different than 1 to scalar
Cannot convert array of size different than 1 to scalar.
无法将大小不为1的数组转化为(????)
Simtech Zhang
China
Local time: 19:40
标量
Explanation:
用于修饰或说明某种仅取单值的数据项,相反意义的“数组”则要取多个数据项。
Selected response from:

Shang
China
Local time: 19:40
Grading comment
4 KudoZ points were awarded for this answer



Summary of answers provided
5 +3标量
Shang
4 +1s.u.
Wenjer Leuschel (X)
4FYR
Xiaoping Fu


  

Answers


37 mins   confidence: Answerer confidence 5/5 peer agreement (net): +3
标量


Explanation:
用于修饰或说明某种仅取单值的数据项,相反意义的“数组”则要取多个数据项。

Shang
China
Local time: 19:40
Specializes in field
Native speaker of: Chinese
PRO pts in category: 228

Peer comments on this answer (and responses from the answerer)
agree  Chinoise
1 min

agree  Wenjer Leuschel (X): Yes, 标量 is exactly 无向量.
32 mins

agree  Danbing HE
1 hr
Login to enter a peer comment (or grade)

1 hr   confidence: Answerer confidence 4/5Answerer confidence 4/5 peer agreement (net): +1
s.u.


Explanation:
无法将大小不为1的数组转换为数量 (无向量)

This is about math and programming.
If you have an array of the size of 1, the value of the array is scalar.
Or else (that is, the size of the array is greater than 1), the array is a vector and a vector cannot be converted to scalar.

Wenjer Leuschel (X)
Taiwan
Local time: 19:40
Native speaker of: Native in ChineseChinese
PRO pts in category: 148

Peer comments on this answer (and responses from the answerer)
agree  Xiaoping Fu
1 hr
  -> Thanks.
Login to enter a peer comment (or grade)

3 hrs   confidence: Answerer confidence 4/5Answerer confidence 4/5
FYR


Explanation:
同意 Wenjer 的解释。

这好象是 perl 程序的出错信息。在编写 perl 程序时,有些错误(例如用一个 array 给普通数值变量赋值)会间接造成把array 转换为 scalar 的操作。正如 Wenjer 所说,长度不为1 的 array 是一个向量,因为 array 是有方向的数字(或对象)序列。在C 、perl 等语言中,当我们申明一个 array 时,如果不指出其长度,则其长度自动设为 1。长度为 1 的 array 实际上无异于一个普通的数量(无向量)。为了节省内存和执行时间,程序内部也是把它当作无向量处理的。而程序内部有这种 array 和 scalar 互相转换的机制。但如果 array 的长度不为1,那么转换为 scalar 是不可能的,就会有出错信息。

此外,当今的计算机软件技术中,array 已经不是单纯的数字序列了,它可以是一组字符串,或者一组对象,称其为“数组”有点名不副实。硬件技术中也有 array,例如磁盘组成的 array, 译为“列阵”。台湾等地的行内人士把软件中的 array 译为“陈列”,我认为包容性要强一些。

在谈论 array 的 size 时,行内一般说“长度”,中文可能比较顺一点,因为这个“size”是个不为零的正整数,表示这个 array 有多少个单元。好象买东西排队,我们不说队的“大小”,而说队的“长短”。:))

Xiaoping Fu
Canada
Local time: 04:40
Native speaker of: Native in ChineseChinese
PRO pts in category: 66
Login to enter a peer comment (or grade)



Login or register (free and only takes a few minutes) to participate in this question.

You will also have access to many other tools and opportunities designed for those who have language-related jobs (or are passionate about them). Participation is free and the site has a strict confidentiality policy.

KudoZ™ translation help

The KudoZ network provides a framework for translators and others to assist each other with translations or explanations of terms and short phrases.


See also:
Term search
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search