MCPcopy Create free account
hub / github.com/daniel-e/rustml / test_design_matrix

Function test_design_matrix

src/regression.rs:213–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211
212 #[test]
213 fn test_design_matrix() {
214 let x = mat![
215 7.0, 2.0, 3.0;
216 4.0, 8.0, 5.0
217 ];
218 let y = x.design_matrix();
219 assert_eq!(
220 y.buf(),
221 &[1.0, 7.0, 2.0, 3.0, 1.0, 4.0, 8.0, 5.0]
222 );
223 }
224
225 #[test]
226 fn test_error() {

Callers

nothing calls this directly

Calls 1

design_matrixMethod · 0.80

Tested by

no test coverage detected