JLink`
JLink`

$RelaxedTypeChecking

$RelaxedTypeChecking

is a flag that can be set to True to speed up the validation performed in the Wolfram Language (via pattern tests) on arrays of data being sent as arguments to Java calls.

Details and Options

  • To use $RelaxedTypeChecking, you first need to load J/Link using Needs["JLink`"].
  • For a very large matrix, it can be expensive to test that it is, for instance, a rectangular matrix of integers before it is sent to Java.
  • This process is made faster by making the tests much less strict, so you must make sure that you pass methods exactly the arguments they expect.
  • The default value is False.
  • You can set and reset the value whenever you want; a typical use would be Block[{$RelaxedTypeChecking=True},methodcall[matrix]].
Wolfram Research (2007), $RelaxedTypeChecking, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/$RelaxedTypeChecking.html.

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_$relaxedtypechecking, author="Wolfram Research", title="{$RelaxedTypeChecking}", year="2007", howpublished="\url{https://reference.wolfram.com/language/JLink/ref/$RelaxedTypeChecking.html}", note=[Accessed: 12-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$relaxedtypechecking, organization={Wolfram Research}, title={$RelaxedTypeChecking}, year={2007}, url={https://reference.wolfram.com/language/JLink/ref/$RelaxedTypeChecking.html}, note=[Accessed: 12-October-2024 ]}