Merge pull request #168 from arturoc/master

mat_macros: from_homogeneous_impl was using dimension of src not dst
This commit is contained in:
Sébastien Crozet 2016-01-10 16:12:44 +01:00
commit ca6026e5cb

View File

@ -682,8 +682,8 @@ macro_rules! from_homogeneous_impl(
fn from(m: &$t2<N>) -> $t<N> {
let mut res: $t<N> = ::one();
for i in 0..$dim2 {
for j in 0..$dim2 {
for i in 0..$dim {
for j in 0..$dim {
res[(i, j)] = m[(i, j)]
}
}