ee.Array.reshape
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک آرایه را به لیست جدیدی از طول ابعاد تغییر شکل می دهد.
استفاده | برمی گرداند | Array. reshape (shape) | آرایه |
استدلال | تایپ کنید | جزئیات | این: array | آرایه | آرایه برای تغییر شکل. |
shape | آرایه | شکل جدیدی که آرایه ها به آن تبدیل می شوند. اگر یکی از اجزای شکل مقدار ویژه -1 باشد، اندازه آن بعد محاسبه می شود تا اندازه کل ثابت بماند. به طور خاص، شکل [-1] به 1-D مسطح می شود. حداکثر یک جزء شکل می تواند -1 باشد. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe \u003ccode\u003ereshape\u003c/code\u003e method modifies the structure of an array without changing its data.\u003c/p\u003e\n"],["\u003cp\u003eIt allows you to specify a new shape using the \u003ccode\u003eshape\u003c/code\u003e argument, which is an array of dimension lengths.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003e-1\u003c/code\u003e within the \u003ccode\u003eshape\u003c/code\u003e array automatically calculates the size of that dimension to maintain the total number of elements.\u003c/p\u003e\n"]]],[],null,["# ee.Array.reshape\n\nReshapes an array to a new list of dimension lengths.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------|---------|\n| Array.reshape`(shape)` | Array |\n\n| Argument | Type | Details |\n|---------------|-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `array` | Array | Array to reshape. |\n| `shape` | Array | New shape to which arrays are converted. If one component of the shape is the special value -1, the size of that dimension is computed so that the total size remains constant. In particular, a shape of \\[-1\\] flattens into 1-D. At most one component of shape can be -1. |"]]