Frama-C API - Vector
val pretty : Stdlib.Format.formatter -> 'n vector -> unit
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 -> scalar
The call get i m
returns the i-th coefficient.
val set : 'n Finite.finite -> scalar -> 'n vector -> 'n vector
The 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.