Another dumb mistakes
Input is vector not matrix