ee.Array.repeat
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
آرایه را در امتداد محور داده شده تکرار می کند. نتیجه شکل ورودی را خواهد داشت، به جز طول در امتداد محور تکرار شده در تعداد کپی داده شده ضرب می شود.
استفاده | برمی گرداند | Array. repeat ( axis , copies ) | آرایه |
استدلال | تایپ کنید | جزئیات | این: array | آرایه | آرایه برای تکرار |
axis | عدد صحیح، پیش فرض: 0 | محوری که در امتداد آن آرایه تکرار شود. |
copies | عدد صحیح، پیش فرض: 2 | تعداد کپی های این آرایه برای الحاق در امتداد محور داده شده. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003e\u003ccode\u003eArray.repeat()\u003c/code\u003e creates a new array by repeating the original array along a specified axis.\u003c/p\u003e\n"],["\u003cp\u003eThe size of the new array remains the same except for the specified axis, which is multiplied by the number of copies.\u003c/p\u003e\n"],["\u003cp\u003eYou can control which axis to repeat along and how many times using the \u003ccode\u003eaxis\u003c/code\u003e and \u003ccode\u003ecopies\u003c/code\u003e parameters.\u003c/p\u003e\n"],["\u003cp\u003eIt's a convenient way to expand an array by duplicating its elements.\u003c/p\u003e\n"]]],[],null,["# ee.Array.repeat\n\nRepeats the array along the given axis. The result will have the shape of the input, except length along the repeated axis will be multiplied by the given number of copies.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------|---------|\n| Array.repeat`(`*axis* `, `*copies*`)` | Array |\n\n| Argument | Type | Details |\n|---------------|---------------------|-------------------------------------------------------------------------|\n| this: `array` | Array | Array to repeat. |\n| `axis` | Integer, default: 0 | The axis along which to repeat the array. |\n| `copies` | Integer, default: 2 | The number of copies of this array to concatenate along the given axis. |"]]