linalg: generalize return type for eye
#901
Labels
idea
Proposition of an idea and opening an issue to discuss it
eye
#901
Motivation
It was recently suggested that the
eye
(#481) function is misleading. I would like to suggest that theeye
function is extended by allowing a general return type. This could be accomplished by introducing an optionalmold
keyword:that would tell the
eye
interface which return type should haveA
:Prior Art
mold
is a Fortran Standard keyword that specifies that the return type of a polymorphic allocation should be taken from another variable:Similarly, here we may want to specify that the return type of the
eye
matrix should be taken from themold
variable.Additional Information
No response
The text was updated successfully, but these errors were encountered: