/usr/share/axiom-20170501/src/algebra/VECTOR.spad is in axiom-source 20170501-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | )abbrev domain VECTOR Vector
++ Author: Mark Botch
++ Description:
++ This type represents vector like objects with varying lengths
++ and indexed by a finite segment of integers starting at 1.
Vector(R) : SIG == CODE where
R : Type
VECTORMININDEX ==> 1 -- if you want to change this, be my guest
SIG ==> VectorCategory R with
vector: List R -> %
++ vector(l) converts the list l to a vector.
CODE ==> IndexedVector(R, VECTORMININDEX) add
vector l == construct l
if R has ConvertibleTo InputForm then
convert(x:%):InputForm ==
convert [convert("vector"::Symbol)@InputForm,
convert(parts x)@InputForm]
|