min_int_type.m
Minimum integer data type sufficient to store the specified value. Useful in many indexing operations in the Spinach kernel where double precision would be a massive overkill.
Syntax
type=min_int_type(max_val,issigned)
Parameters
max_val - maximum value that the integer
must cover
issigned - whether the integer needs to
cover the negative values:
'signed' or 'unsigned'
Outputs
type - Matlab data type to use
Examples
See examples in the Spinach distribution relevant to this function.
Notes
This page was generated from the function header in the Spinach repository.
See also
istraceless.m, unihash.m, kq2lin.m, lin2kq.m, prune_subgraphs.m, autoexec.m, bos_product_table.m, fft_freq_axis.m, fwhm2rlx.m, icm2hz.m, ifft_time_axis.m, intrep.m, kronm.m, lcurve.m, redfield_integral_async.m, redfield_integral_serial.m, repcols.m, reprows.m, serpentine.m, st_product_table.m, tikhol1n.m, which_subst.m, xyz2hfc.m, Kernel_utilities
Version 2.11, authors: Ilya Kuprov