Open
Description
For array generation functions, If all of the dimensions that are supplied are 1, the resulting array should be a scalar.
Different tasks of this to do plan:
Achievement check:
we can get a :mat argument to do this, so this prevents type stability problems
onesM(:mat, 1, 2, 1, 1) # gives ones(1,2)
onesM(:mat, 2, 1, 1, 1) # gives ones(2,1)
isvectorM(:mat, ones(1,2,1,1)) # true
isvectorM(:mat, ones(1,1,2,1)) # false