JLink`
JLink`

AllowRaggedArrays

AllowRaggedArrays[True]

lets you pass ragged (i.e. nonrectangular) arrays to Java.

AllowRaggedArrays[False]

restores the default behavior.

Details and Options

  • To use AllowRaggedArrays, you first need to load J/Link using Needs["JLink`"].
  • With AllowRaggedArrays[True], a method that takes int[][] could be passed {{1,2},{3}}.
  • AllowRaggedArrays[True] can drastically reduce the speed with which large arrays are passed back and forth between the Wolfram Language and Java.
Wolfram Research (2007), AllowRaggedArrays, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/AllowRaggedArrays.html.

Text

Wolfram Research (2007), AllowRaggedArrays, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/AllowRaggedArrays.html.

CMS

Wolfram Language. 2007. "AllowRaggedArrays." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/JLink/ref/AllowRaggedArrays.html.

APA

Wolfram Language. (2007). AllowRaggedArrays. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/JLink/ref/AllowRaggedArrays.html

BibTeX

@misc{reference.wolfram_2023_allowraggedarrays, author="Wolfram Research", title="{AllowRaggedArrays}", year="2007", howpublished="\url{https://reference.wolfram.com/language/JLink/ref/AllowRaggedArrays.html}", note=[Accessed: 28-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_allowraggedarrays, organization={Wolfram Research}, title={AllowRaggedArrays}, year={2007}, url={https://reference.wolfram.com/language/JLink/ref/AllowRaggedArrays.html}, note=[Accessed: 28-March-2024 ]}