Macaulay2 » Documentation
Packages » CodingTheory » LinearCode » ambientSpace
next | previous | forward | backward | up | index | toc

# ambientSpace -- recovers the ambient module of a code

- Usage:
    `ambientSpace C`
- Inputs:
  - C, an instance of the type LinearCode,
- Outputs:
  - a module,

## Description

Given a code C of length $n$ over the field $F$, this function extracts the ambient module $F^n$, which is the value stored under the key AmbientModule of the hash table C.LinearCode.

    i1 : F=GF(4,Variable=>a);

    i2 : C=linearCode(matrix{{1,a,0},{0,1,a}});

    i3 : ambientSpace C

          3
    o3 = F

    o3 : F-module, free

### Menu

#### Related functions and symbols:

- alphabet -- elements of the base ring of a code
- AmbientModule -- the ambient module of a code
- BaseField -- the field of a code
- field -- the field of a code
- vectorSpace -- vector space of a code

## Ways to use ambientSpace:

- `ambientSpace(LinearCode)`

## For the programmer

The object ambientSpace is a method function.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/CodingTheory.m2:4016:0.