4 ms·
In mathematics, a function is a mapping from input values to output values. A vector is a mapping from a set of integers to a value at the specified index, ther
by xcv123 3y ago
In mathematics, a function is a mapping from input values to output values. A vector is a mapping from a set of integers to a value at the specified index, therefore it is a function.
e.g.
float vector[4]{1.0, 5.0, 3.0, 2.5};
vector[0] == 1.0;
vector[1] == 5.0;
vector[2] == 3.0;
vector[3] == 2.5;