INT64 arithmetic in MATLAB

Enables int64 Addition, subtraction, multiplication, division and modulus.

2.8K Downloads

Updated 5 Nov 2010

View License

This submission enables the following operations for the int64 and uint64 data types:
* Addition
* Subtraction
* Multiplication (element-wise and matrix)
* Division (element-wise only)
* mod, abs, bitshift

See the published file for more details.

Cite As

Petter (2023). INT64 arithmetic in MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/24725-int64-arithmetic-in-matlab), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

int64arithmetic/html/

Version Published Release Notes
1.13.0.0

Removed the compiled *.mexw32 and *.mexw64

1.12.0.0

Added colon operator for 1:n constructs

1.11.0.0

Updating according to comments by Jan Simon. Thanks!
Nothing changes for the user except the behaviour of mod(i,0)

1.10.0.0

Added matrix multiplication (not fast compared to double)

1.8.0.0

*Added support for the uint64 datatype as well
*No longer accepts A*B is A and B are matrices
*Added binaries for Windows 64-bit

1.6.0.0

Description update

1.2.0.0

Added support for the bitshift function

1.1.0.0

Update according to suggestions from Bruno Luong: Out out memory check and requiring that the dimensions of the arrays matches exactly (not just number of elements).

1.0.0.0