classifier-reborn icon indicating copy to clipboard operation
classifier-reborn copied to clipboard

Rust matrix spike

Open Ch4s3 opened this issue 7 years ago • 3 comments

DO NOT MERGE

Ch4s3 avatar Jan 03 '17 21:01 Ch4s3

Nifty!

parkr avatar Jan 04 '17 03:01 parkr

Hopefully. It should work, and I have some of Steve Klabnick's example code to use as a reference. I just need to brush up on my rust... ;)

Ch4s3 avatar Jan 04 '17 03:01 Ch4s3

So I've gotten this to the point that it starts building, but fails on the Rust code I "wrote" Which is good, because it means the tools work. I just need to learn enough Rust to write a competent wrapper.

Here's where I am so far.

error: macro undefined: 'println!'
  --> src/lib.rs:16:3
   |
16 |   println!("{:?}", svd.get_s());
   |   ^^^^^^^

error: macro undefined: 'println!'
  --> src/lib.rs:13:3
   |
13 |   println!("{:?}", c);
   |   ^^^^^^^

error: macro undefined: 'm!'
  --> src/lib.rs:11:11
   |
11 |   let b = m!(7.0, 8.0, 9.0; 10.0, 11.0, 12.0);
   |           ^

error: macro undefined: 'm!'
  --> src/lib.rs:10:11
   |
10 |   let a = m!(1.0, 2.0; 3.0, 4.0; 5.0, 6.0);
   |           ^

error: aborting due to 4 previous errors

error: Could not compile `classifier_reborn`.

Ch4s3 avatar Jan 06 '17 17:01 Ch4s3