Remove dependency to `ndarray` crate
Created by: lo48576
ndarray
crate is used only in gpu_cache
module, and the module uses ndarray
only for 2D array of u8
type.
This commit implements ByteArray2d
struct instead of OwnedArray<u8, (Ix, Ix)>
to use, and remove dependency to ndarray
crate.
At present, the newest version of ndarray
crate is 0.6.0 and some API has changed.
But ndarray-0.6.0 uses #[deprecated]
attribute and cannot compile with rustc-1.8.0 or below.
I think this is a good chance to stop using ndarray
, but if this PR is rejected, this crate should use newer ndarray
.