SubArray is a specialization ofAbstractArray that performs indexing by sharing memory with the original array rather than by copying it.
请记住,如前所述,此方法不会改变原始数组,但会返回一个新数组。
Remember that as described previously this method does not mutate the original array, but it returns a new array..
这样我们可以使用新的切片,原始数组可以被垃圾回收。
This way we can use the new slice and the original array can be garbage collected.
从原始数组a到临时数组b有k个移动,而另一个k移回。
There are k moves from original array a to temporary array b and another k moves back.
您应该小心使用此方法,因为如果您从另一个变量或属性引用此数组,原始数组将保持不变。
You should be careful with this method because if you have referenced the original array from another variable orproperty, the original array will remain unchanged.
这确保了我们将在所有测试中使用相同的数据,并且我们不会更改原始数组。
This ensures that we will use the same data in all our tests andwe do not change the original array.
类似地,当将数组传递给函数作为参数时,它们将通过值传递,而原始数组将保持不变。
Similarly when arrays are passed to functions as parameters,they are passed by value and the original array is unchanged.
我们比较并交换原始数组中的值(如果需要)。
We compare and swap the values, if required, in the original array.
由于这个原因及其他许多方面的考虑,最好是不要使用原始数组,而是将它们封装到一个合适的集合类中。
For this reason, and many others,it is better to just not use raw arrays and instead wrap them in an appropriate collection class.
TensorFlow是一个面向数组的平台,允许您将一组原始数组操作组装到工作流中。
TensorFlow is an array-oriented platform that allows you to assemble a bunch of primitive array operations into a workflow.
注意:slice()方法不会改变原始数组。
Note: The toLowerCase() method does not change the original string.
现在,当我修稿arr_slice中的值,变动也会体现在原始数组arr中:.
Now, when I change values in arr_slice,the mutations are reflected in the original array arr:.
现在我们需要另一个函数,它通过将原始数组的每个元素加倍来返回一个新数组。
Now we need another function which returns a new array by doubling each element of the original array..
更改ndarray的大小将创建一个新数组并删除原始数组。
Changing the size of an ndarray will create a new array and delete the original.
原始数组和新数组都引用相同的对象。
Both the original and new array refer to the same object.
也就是说,如果引用的对象被修改,则更改对于新数组和原始数组都是可见的。
That is, if a referenced object is modified,the changes are visible to both the new and original arrays.
随着数组,运算时制造一个新的数组只包含这些基本元素在原始数组中。
With sets, the operation that creates a new set containing only those elements common to the original sets..
中文
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt