# Vmatrix

Used for double-vertical-bar matrices, often for norms or specialized determinant-like notation

https://texform.dev/latex/environments/Vmatrix

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Matrices](https://texform.dev/latex/topics/matrices) |
| Packages | ams |
| Allowed mode | math |
| Tags | matrix, nestable |
| Commonality | medium |
| Body mode | math |

## Syntax

### ams

Argument specification: ``

Used for double-vertical-bar matrices, often for norms or specialized determinant-like notation

## Examples

```latex
\begin{Vmatrix} a & b \\ c & d \end{Vmatrix}
```

[Open in Playground](https://play.texform.dev/?input=%5Cbegin%7BVmatrix%7D+a+%26+b+%5C%5C+c+%26+d+%5Cend%7BVmatrix%7D)

## Renderer support

| Package | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- |
| ams | full | full | full |

## Usage frequency

<0.01% of formulas in the measured corpus contain this entry, rank 28 of 31 entries with frequency data.

## In TeXForm

TeXForm reads the environment body in math mode.

### [ams/Vmatrix-env-to-Vert-matrix](https://texform.dev/rules/ams/Vmatrix-env-to-Vert-matrix)

Rewrite the fenced Vmatrix environment to explicit double bars around a core matrix environment.

Level: corpus. Fidelity: render.

```latex
\begin{Vmatrix} #1 \end{Vmatrix}
```

→

```latex
\left\Vert\begin{matrix} #1 \end{matrix}\right\Vert
```

```latex
\begin{Vmatrix} a & b \\ c & d \end{Vmatrix}
```

→

```latex
\left\Vert\begin{matrix} a & b \\ c & d \end{matrix}\right\Vert
```

## See also

- [bmatrix](https://texform.dev/latex/environments/bmatrix)
- [Bmatrix](https://texform.dev/latex/environments/Bmatrix)
- [cases](https://texform.dev/latex/environments/cases)
- [matrix](https://texform.dev/latex/environments/matrix)
- [pmatrix](https://texform.dev/latex/environments/pmatrix)
- [smallmatrix](https://texform.dev/latex/environments/smallmatrix)
- [subarray](https://texform.dev/latex/environments/subarray)
- [vmatrix](https://texform.dev/latex/environments/vmatrix)

## Test cases

### ams

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \begin{Vmatrix} a & b \\\\ c & d \end{Vmatrix} | Positive: baseline | Pass | Pass | Pass |
