matrix {gmp} | R Documentation |
Overload of all standard tools usefull for matrix manipulation adapted to large numbers.
matrix.bigz(data = NA, nrow = 1, ncol = 1, byrow = FALSE, dimnames = NULL, mod = NA,...)
data |
An optional data vector |
nrow |
the desired number of rows |
ncol |
the desired number of columns |
byrow |
logical. If 'FALSE' (the default) the matrix is filled by columns, otherwise the matrix is filled by rows. |
dimnames |
Not implemented |
mod |
Optional modulus |
... |
Not used |
Extract function is the same use for vector or matrix. Then,
x[i]
return same value as x[i,]
.
Special features concerning bigz class: modulus can be
matrix.bigz(1:6,nrow=2,ncol=3,mod=7)
This mean you work
in Z/nZ, for the whole matrix. It is the only case
where %*% and solve functions will work in Z/nZmatrix.bigz(1:6,nrow=2,ncol=3,mod=1:5)
then modulus
is repeated to the end of data. This can be used to define matrix
with a different modulus at each row
A matrix of class bigz or bigq
Antoine Lucas
Solving linear algebra system solve.bigz
; matrix