Change the way to get banded-matrix.

Avoid copying (2 * K + 1) * N elements from CPU to GPU.