Vectorizing a function in R

前端 未结 0 1679
天涯浪人
天涯浪人 2020-12-18 04:06

I\'m trying to vectorize this function, but nothing I try works. It is supposed to make an n x n matrix with 2\'s along its diagonal and -1 on the first upper and lower diag

相关标签:
回答
  • 消灭零回复
提交回复
热议问题