---
title: "Determinant and Other Properties"
canonical: "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/SparseMatrices/determinant.html"
source: "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/SparseMatrices/determinant.md"
part: "Matrices and Linear Algebra"
chapter: "Sparse Matrices"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Matrices and Linear Algebra", "source": "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/index-matrices-linear-algebra.md"}
  - {"title": "Sparse Matrices", "source": "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/SparseMatrices/index-sparse-matrices.md"}
prev: {"title": "Non-trivial Properties", "source": "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/SparseMatrices/non-trivial.md"}
next: {"title": "Minimal and Characteristic Polynomials and Eigenvalues", "source": "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/SparseMatrices/min-char-poly.md"}
intrinsics:
  - {"name": "Determinant", "signature": "Determinant(A: parameters): MtrxSprs -> RngElt"}
---

# Determinant and Other Properties

<a id="function-determinant-mtrxsprs"></a>
## `Determinant(A: parameters): MtrxSprs -> RngElt`

```magma
MonteCarloSteps: RngIntElt                    Default: 
```

Given a square sparse matrix $A$ over the ring $R$, return the determinant of $A$ as an element of $R$. $R$ may be any commutative ring. The algorithm first performs sparse elimination using Markowitz pivoting ([[DEJ84](https://docs.magma-maths.org/v2.30-1/references.md#cite-smatbook), Sec. 9.2]) to obtain a smaller dense matrix, then the determinant algorithm for dense-representation matrices is applied to this matrix. If the parameter `MonteCarloSteps` is given, then this is passed to the dense algorithm for the dense matrix.
