sli
is a MATLAB toolbox that provides sli objects and operations on them.
- sli.m - the main object file.
- tests - various testing scripts that test the accuracy of representation and operations.
- experiments - scripts to reproduce the experiments with level-index arithmetic in [1].
x = sli(2,12);
x = x.set_val(pi)
x =
sli with properties:
level_bits: 2
index_bits: 12
sign: 0
reciprocal: 1
level: 2
index: 0.135253906250000
value: 3.141899100868418
Clone the repository and add the root directory to the MATLAB search path.
The code was developed on MATLAB 2023b. Experiments make use of the CPFloat package.
[1] Mantas Mikaitis. MATLAB Simulator of Level-Index Arithmetic. arXiv:2402.02301 [cs.MS]. Feb. 2024. Accepted for ARITH 2024.
The code is distributed under the terms of the BSD 2-Clause License; see license.txt.