Solve method with generics

Open
#309 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust
Domain
data

Research direction

Start at the solve entry point used by A.solve(&b) and inspect the generic bounds involving Array1<T> and the Float trait. Reproduce the provided snippet and determine whether the generic linear-system solve is expected to compile; done means the example works for a generic T satisfying the documented bounds.

Written by the indexing model from the issue text.

Description

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?

Dominant language
Rust
Stars
452
Forks
95
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-ndarray/ndarray-linalg

All issues in rust-ndarray/ndarray-linalg

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.