sparsax.set_token_cache_size¶
- sparsax.set_token_cache_size(n)[source]¶
Keep at most
nfactor tokens per backend (default 64).factor(),lu_factor()andumf_factor()return tokens that pin their numeric factor. Tokens are plain arrays with no destructor, so sparsax keeps only each backend’snnewest and releases the rest; a released token raises a “stale factor token” error when used. Hold a token across at mostnnewer factorizations of that backend, or raisen(at the cost of up tonresident factors).