Let us consider the product of a scalar by a matrix: the matrix must be
multiplied in-place, and the computation time must be returned. This
problem has one IN argument (the scalar factor), one INOUT argument (the matrix)
and one OUT argument (the computation time), so its profile will be built as
follows:

If there is no IN argument, last_in must be set to
-1, if there is no INOUT argument, last_inout must
be equal to last_in, and if there is no OUT argument,
last_out must be equal to last_inout.

NB2:

The value argument for _set functions
(3.4.1) is ignored for OUT arguments, since DIET
allocates the necessary memory space when the corresponding data are
transferred from the server, so set value to NULL.