---
title: "Conversion Functions"
canonical: "https://docs.magma-maths.org/v2.30-1/Combinatorics/Designs/conversion.html"
source: "https://docs.magma-maths.org/v2.30-1/Combinatorics/Designs/conversion.md"
part: "Combinatorics"
chapter: "Incidence Structures and Designs"
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": "Incidence Structures and Designs", "source": "https://docs.magma-maths.org/v2.30-1/Combinatorics/Designs/index-designs.md"}
prev: {"title": "Resolutions, Parallelisms, and Parallel Classes", "source": "https://docs.magma-maths.org/v2.30-1/Combinatorics/Designs/resolutions.md"}
next: {"title": "Identity and Isomorphism", "source": "https://docs.magma-maths.org/v2.30-1/Combinatorics/Designs/equality.md"}
intrinsics:
  - {"name": "IncidenceStructure", "signature": "IncidenceStructure(I): Inc -> Inc"}
  - {"name": "NearLinearSpace", "signature": "NearLinearSpace(I): Inc -> IncNsp"}
  - {"name": "LinearSpace", "signature": "LinearSpace(I): Inc -> IncLsp"}
  - {"name": "Design", "signature": "Design(I, t): Inc, RngIntElt -> Dsgn"}
examples:
  - "ex-97a8b8"
---

# Conversion Functions

<a id="function-incidencestructure-inc"></a>
## `IncidenceStructure(I): Inc -> Inc`

Given an incidence structure $I$ (of any type), return the same structure as a “true” incidence structure (i.e., belonging to the category Inc).

<a id="function-nearlinearspace-inc"></a>
## `NearLinearSpace(I): Inc -> IncNsp`

Given an incidence structure $I$ (of any type), return the same structure as a near–linear space (i.e., belonging to the category `IncNsp`), if possible.

<a id="function-linearspace-inc"></a>
## `LinearSpace(I): Inc -> IncLsp`

Given an incidence structure $I$ (of any type), return the same structure as a linear space (i.e., belonging to the category `IncLsp`), if possible.

<a id="function-design-inc-rngintelt"></a>
## `Design(I, t): Inc, RngIntElt -> Dsgn`

Given an incidence structure $I$ (of any type), return the same structure as a $t$–design (i.e., belonging to the category `Dsgn`), if possible.

<a id="example-ex-97a8b8"></a>
## `Example: Converting Incidence Structures (ex-97a8b8)`

The following example illustrates some of the functions of the previous two sections.

```magma
> I := IncidenceStructure< 8 | {1, 2, 3, 4}, {1, 3, 5, 6}, {1, 4, 7, 8},
>   {2, 5, 6, 7}, {2, 5, 7, 8}, {3, 4, 6, 8} >;
> IsDesign(I, 1);
true 3
> IsDesign(I, 2);
false
> D := Design(I, 1);
> D;
1-(8, 4, 3) Design with 6 blocks
> IsSteiner(D, 1);
false
> IsNearLinearSpace(I);
false
```
