Code covered by the BSD License
-
example_int64
-
abs(a)
-
abs(a)
-
bitshift(a,b)
-
bitshift(a,b)
-
checkinputs(a,b)
-
checkinputs(a,b)
-
colon(a,b,c)
Works reasonably well since double represents integers <= about 2^50 exactly
-
colon(a,b,c)
Works reasonably well since double represents integers <= about 2^50 exactly
-
gcd(a,b)
GCD Greatest common divisor.
-
gcd(a,b)
GCD Greatest common divisor.
-
minus(a,b)
-
minus(a,b)
-
mod(a,b)
-
mod(a,b)
-
mpower(a,b)
-
mpower(a,b)
-
mrdivide(a,b)
-
mrdivide(a,b)
-
mtimes(a,b)
-
mtimes(a,b)
-
plus(a,b)
-
plus(a,b)
-
power(a,b)
-
power(a,b)
-
prod(A)
-
prod(A)
-
rdivide(a,b)
-
rdivide(a,b)
-
sum(A)
-
sum(A)
-
times(a,b)
-
times(a,b)
-
compile_int64.m
-
View all files
INT64 arithmetic in MATLAB
by Petter
14 Jul 2009
(Updated 05 Nov 2010)
Enables int64 Addition, subtraction, multiplication, division and modulus.
|
Watch this File
|
| File Information |
| Description |
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. |
| MATLAB release |
MATLAB 7.4 (R2007a)
|
| Other requirements |
C compiler supporting "signed long long". |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 14 Jul 2009 |
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). |
| 12 Sep 2009 |
Added support for the bitshift function |
| 18 Sep 2009 |
Description update |
| 22 Sep 2009 |
*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 |
| 24 Oct 2009 |
Added matrix multiplication (not fast compared to double) |
| 01 Jun 2010 |
Updating according to comments by Jan Simon. Thanks!
Nothing changes for the user except the behaviour of mod(i,0) |
| 28 Jul 2010 |
Added colon operator for 1:n constructs |
| 05 Nov 2010 |
Removed the compiled *.mexw32 and *.mexw64 |
|
Contact us at files@mathworks.com