maxNumCompThreads
Returns the number of computational threads available to MatLivre.
Category: Programming > Programming Utilities
Syntax
N = maxNumCompThreads
Returns the maximum number of threads used for computation.
Description
Some operations, such as large matrix products, can split their work over several threads. The value is a property of the machine and the session, so it differs between computers; do not depend on a specific number in tests.
Output arguments
N- Positive integer scalar.
Example
Querying the thread count
N = maxNumCompThreads;
disp(N >= 1)
Output
1