ndarray-linalg icon indicating copy to clipboard operation
ndarray-linalg copied to clipboard

Solve method with generics

Open PABannier opened this issue 4 years ago • 0 comments

I tried solving a simple linear system with generics T having the Float trait, but I couldn't make it work. Here is a short snippet of code:

// A is some 2d matrix
let K = 5; 
let b: Array1<T> = Array1::ones(K);
let _res = A.solve(&b);

Any ideas how to fix this issue?

PABannier avatar Dec 29 '21 11:12 PABannier