Example: Homomorphism of free abelian groups
Profiles: OSCAR v1.5, OSCAR v1.6, OSCAR v1.7, OSCAR v1.8
A homomorphism from rank-2 to rank-3 free abelian group defined by an integer matrix.
Related Specification
Systems
Oscar.jl
Generate code (generate.jl) [ edit ]
using Oscar
dom = free_abelian_group(2)
codom = free_abelian_group(3)
mat = matrix(ZZ, [[1, 2, 3], [2, 3, 4]])
obj = hom(dom, codom, mat)
save("data.mrdi", obj)
Data outputs
Profiles: OSCAR v1.5, OSCAR v1.6, OSCAR v1.7
Data file: data.mrdi
{
"_ns": {"Oscar": ["https://github.com/oscar-system/Oscar.jl", "1.7.0"]},
"_type": {
"name": "FinGenAbGroupHom",
"params": {
"domain": "9012fc82-58d5-4e23-94e9-915241dd083d",
"codomain": "a6382371-d9d6-488a-af71-debd1eff4bf0"
}
},
"data": [["1", "2", "3"], ["2", "3", "4"]],
"id": "8e133f0e-5f2d-45d2-99e5-fd942728d6fd",
"_refs": {
"9012fc82-58d5-4e23-94e9-915241dd083d": {"_type": "FinGenAbGroup", "data": [["0", "0"], ["0", "0"]]},
"a6382371-d9d6-488a-af71-debd1eff4bf0": {"_type": "FinGenAbGroup", "data": [["0", "0", "0"], ["0", "0", "0"], ["0", "0", "0"]]}
}
}
This serialized output is equivalent for these profiles up to UUID renaming and recorded namespace version strings.