---
title: "Associated $3$-Designs"
canonical: "https://docs.magma-maths.org/v2.30-1/Combinatorics/HadamardMatrices/designs.html"
source: "https://docs.magma-maths.org/v2.30-1/Combinatorics/HadamardMatrices/designs.md"
part: "Combinatorics"
chapter: "Hadamard Matrices"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Combinatorics", "source": "https://docs.magma-maths.org/v2.30-1/Combinatorics/index-combinatorics.md"}
  - {"title": "Hadamard Matrices", "source": "https://docs.magma-maths.org/v2.30-1/Combinatorics/HadamardMatrices/index-hadamard-matrices.md"}
prev: {"title": "Equivalence Testing", "source": "https://docs.magma-maths.org/v2.30-1/Combinatorics/HadamardMatrices/hadamard.md"}
next: {"title": "Automorphism Group", "source": "https://docs.magma-maths.org/v2.30-1/Combinatorics/HadamardMatrices/hadamard-misc.md"}
intrinsics:
  - {"name": "HadamardRowDesign", "signature": "HadamardRowDesign(H, i): AlgMatElt, RngIntElt -> Dsgn"}
  - {"name": "HadamardColumnDesign", "signature": "HadamardColumnDesign(H, i): AlgMatElt, RngIntElt -> Dsgn"}
examples:
  - "ex-16b02c"
---

# Associated $3$-Designs

<a id="function-hadamardrowdesign-algmatelt-rngintelt"></a>
## `HadamardRowDesign(H, i): AlgMatElt, RngIntElt -> Dsgn`

Given an $n \times n$ Hadamard matrix $H$ (with $n \ge 4$) and an integer $i$ with $1 \le i \le n$, returns the Hadamard $3$–design corresponding to the $i$th row of $H$.

<a id="function-hadamardcolumndesign-algmatelt-rngintelt"></a>
## `HadamardColumnDesign(H, i): AlgMatElt, RngIntElt -> Dsgn`

Given an $n \times n$ Hadamard matrix $H$ (with $n \ge 4$) and an integer $i$ with $1 \le i \le n$, returns the Hadamard $3$–design corresponding to the $i$th column of $H$.

<a id="example-ex-16b02c"></a>
## `Example: Hadamard Designs (ex-16b02c)`

There is only one Hadamard equivalence class of $8 \times 8$ Hadamard matrices. We construct one matrix, and two of its designs.

```magma
> R := MatrixRing(Integers(), 8);
> H := R![1,  1,  1,  1,  1,  1,  1,  1,
>         1,  1,  1,  1, -1, -1, -1, -1,
>         1,  1, -1, -1,  1,  1, -1, -1,
>         1,  1, -1, -1, -1, -1,  1,  1,
>         1, -1,  1, -1,  1, -1, -1,  1,
>         1, -1,  1, -1, -1,  1,  1, -1,
>         1, -1, -1,  1, -1,  1, -1,  1,
>         1, -1, -1,  1,  1, -1,  1, -1];
> IsHadamard(H);
true
> DR := HadamardRowDesign(H, 3);
> DR: Maximal;
3-(8, 4, 1) Design with 14 blocks
Points: {@ 1, 2, 3, 4, 5, 6, 7, 8 @}
Blocks:
    {1, 2, 5, 6},
    {1, 2, 7, 8},
    {1, 2, 3, 4},
    {1, 4, 5, 7},
    {1, 4, 6, 8},
    {1, 3, 6, 7},
    {1, 3, 5, 8},
    {3, 4, 7, 8},
    {3, 4, 5, 6},
    {5, 6, 7, 8},
    {2, 3, 6, 8},
    {2, 3, 5, 7},
    {2, 4, 5, 8},
    {2, 4, 6, 7}
> HadamardColumnDesign(H, 8);
3-(8, 4, 1) Design with 14 blocks
```
