# solve.bigz {gmp}

### Description

This generic function solves the equation a %*% x = b for x, where b can be either a vector or a matrix.

If a and b are rational, return is a rational matrix.

If a and b are big integers (of class bigz) solution is in Z/nZ if there is a common modulus, or a rational matrix if not.

### Usage

## S3 method for class 'bigz': solve((a, b, ...)) ## S3 method for class 'bigq': solve((a, b, ...))

### Arguments

- a,b
- A element of class bigz or bigq
- ...
- Unused

### Details

It uses the Gauss and trucmuch algo ... (to be detailled).

### Values

If a and b are rational, return is a rational matrix.

If a and b are big integers (of class bigz) solution is in Z/nZ if there is a common modulus, of a rational matrix if not.

### See Also

### Examples

Documentation reproduced from package gmp, version 0.5-11. License: GPL