package frama-c
Module Space.Vector
val pretty : Format.formatter -> 'n vector -> unitThe call zero n returns the 0 vector in ๐โฟ.
The call repeat x n returns a vector in ๐โฟ which each dimension containing the scalar x.
The call base i n returns the i-th base vector in the orthonormal space of ๐โฟ. In other words, the returned vector contains zero except for the i-th coordinate, which contains one.
val get : 'n Finite.finite -> 'n vector -> scalarThe call get i m returns the i-th coefficient.
val set : 'n Finite.finite -> scalar -> 'n vector -> 'n vectorThe call set i x v returns a new vector of the same linear space as v, and with the same coordinates, except for the i-th one, which is set to the scalar x.
The call norm v computes the โ-norm of v, i.e the maximum of the absolute values of its coordinates.