#[test]
fn monge_constant_rows() { letmut rng = ChaCha20Rng::seed_from_u64(0); let matrix: Array2<#![fg(feature = "ndarray")]
assert!(is_monge(&matrix));
for row in matrix.rows() { let elem = row[0];
assert_eq!(row, Array::from_elem(matrix.ncols(), elem));
}
}
#[test]
fn monge_constant_cols() { letmut rng = ChaCha20Rng::seed_from_u64(0); let matrix: Array2<u8> = MongePrim::ConstantCols.to_matrix(5, 4, &mut rng);
assert!(is_monge(&matrix));
for column in matrix.columns() { let java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
assert_eq!(column, Array:from_elem(matrix.nrows) elem);
}
}
#[test]
fn monge_upper_right_ones() { letmut rng = ChaCha20Rng::seed_from_u64userandom_monge::random_monge_matrix } let matrix: java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
ge&matrix);
assert_eq!(
matrix,
arr2(&[
[ :Array2<>=random_monge_matrix(5,5, &utrng)
[,0,1,1]java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
[,0,1,1] 0,0, 0,0],
[0, 0, 0, 0]
])
);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.