Method smithNormalForm
val smithNormalForm: Tensor<bigint> -> Tensor<bigint> * Tensor<bigint> * Tensor<bigint>
Computes the Smith Normal Form S of integer matrix A and returns a tuple (U, S, V) so that S = U .* A .* V, where U and V are invertible matrices and S is a positive, diagonal matrix with the property that each element of the diagonal divides all of its successors.
Declaration
val smithNormalForm: A:Tensor<bigint> -> Tensor<bigint> * Tensor<bigint> * Tensor<bigint>
Parameters
Type | Name | Description |
---|---|---|
Tensor<bigint> | A |
Returns
Type | Description |
---|---|
Tensor<bigint> * Tensor<bigint> * Tensor<bigint> |
Remarks
The Smith Normal Form exists for a matrix of any shape or rank.