Question: fill in the ? marks fij = firstdiff _ ij ( i , j , n ) Inputs: - ` i `

fill in the ? marks
"""
fij = firstdiff_ij(i, j, n)
Inputs:
-`i`, row index
-`j`, column index
-`n`, length of each side of desired first difference matrix
Output: `fij` is the (`i`,`j`)-th element of the `n`-dimensional first difference matrix.
"""
function firstdiff_ij(i::Integer, j::Integer, n::Integer)
if ??
??
elseif ??
??
elseif (??) && (??)
??
else
??
end
return fij
end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!