Smartcore - DenseMatrix problem

I am dealing with smartcore - DenseMatrix . x_test is in DenseMatrix type for row in x_test.iter_rows() { for element in row.iter() { println!("Value: {}", element); } }.
compiler complains as "for row in x_test.iter_rows() {
^^^^^^^^^ method not found in DenseMatrix<f64> "

regards

Where did you find the iter_rows method? I can't find it in the docs or in the repo of smartcore

How can I iterate over smartcore's DenseMatrix<f64> and get the element?

With DenseMatrix::iter I presume.

Is everything fine now?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.