Default behavior of divmod() is different from MATLAB mod(), on which the original logic was based. The prior logic threw a ZeroDivisionError if printitn == 0. Instead, this fix avoids this error by testing that printitn > 0. Tests added for various values of printitn.
Update tests/test_cp_als.py
Update tests/test_cp_als.py
Applying Nick's suggesetions to remove mark, change maxiters to save CPU cycles. Also removing output since nothing is actually checked.
…… (#237)
Default behavior of divmod() is different from MATLAB mod(), on which the original logic was based. The prior logic threw a ZeroDivisionError if printitn == 0. Instead, this fix avoids this error by testing that printitn > 0. Tests added for various values of printitn.
Update tests/test_cp_als.py
Update tests/test_cp_als.py
Applying Nick's suggesetions to remove mark, change maxiters to save CPU cycles. Also removing output since nothing is actually checked.
Removes mark
Closes #235 ---------
:books: Documentation preview :books:: https://pyttb--242.org.readthedocs.build/en/242/