{"action":"created","issue":{"url":"https://api.github.com/repos/mathnet/mathnet-numerics/issues/275","labels_url":"https://api.github.com/repos/mathnet/mathnet-numerics/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/mathnet/mathnet-numerics/issues/275/comments","events_url":"https://api.github.com/repos/mathnet/mathnet-numerics/issues/275/events","html_url":"https://github.com/mathnet/mathnet-numerics/issues/275","id":53381702,"number":275,"title":"SetSubMatrix problem","user":{"login":"archiseb","id":9480668,"avatar_url":"https://avatars.githubusercontent.com/u/9480668?v=3","gravatar_id":"","url":"https://api.github.com/users/archiseb","html_url":"https://github.com/archiseb","followers_url":"https://api.github.com/users/archiseb/followers","following_url":"https://api.github.com/users/archiseb/following{/other_user}","gists_url":"https://api.github.com/users/archiseb/gists{/gist_id}","starred_url":"https://api.github.com/users/archiseb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archiseb/subscriptions","organizations_url":"https://api.github.com/users/archiseb/orgs","repos_url":"https://api.github.com/users/archiseb/repos","events_url":"https://api.github.com/users/archiseb/events{/privacy}","received_events_url":"https://api.github.com/users/archiseb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-05T10:17:43Z","updated_at":"2015-01-05T17:50:54Z","closed_at":null,"body":"Hello \r\n\r\nI'm using Math.Net to perform FEM code, and i get some issuse in usage of SetSubMatrix in Matrix<double> objects.\r\nI'm creating 6 Dense Matrices 6x6, and I'm composing from them 24x24 matrix. \r\nBut, the end Matrix, after composing contains \"holes\" I've use DelimitedWriter.Write to export matrix to Excel and this is what I get...\r\n![bez tytulu](https://cloud.githubusercontent.com/assets/9480668/5611800/82c011c4-94cb-11e4-81a5-d379ac636fea.jpg)\r\n\r\ncomposing of 24x24 matrix part looks like this. All matrix K1,K2...K6 (which are 6x6)are fulfilled with doubles...\r\n\r\n //Composing Ke matrix\r\n            // * Ke = {K1, K2, K3, K4\r\n            //  *      K2T, K5, K6, K3T\r\n            // *       K3T, K6, K5T, K2T\r\n            // *       K4, K3, K2, K1T}\r\n            //Row 0\r\n            Ke.SetSubMatrix(0, 0, K1);\r\n           Ke.SetSubMatrix(0, 6, K2);\r\n           Ke.SetSubMatrix(0, 12, K3);\r\n            Ke.SetSubMatrix(0, 18, K4);\r\n            //Row 6\r\n            Ke.SetSubMatrix(6, 0, K2.Transpose());\r\n            Ke.SetSubMatrix(6, 6, K5);\r\n            Ke.SetSubMatrix(6, 12, K6);\r\n            Ke.SetSubMatrix(6, 18, K3.Transpose());\r\n            ////Row 12\r\n            Ke.SetSubMatrix(12, 0, K3.Transpose());\r\n            Ke.SetSubMatrix(12, 6, K6);\r\n            Ke.SetSubMatrix(12, 12, K5.Transpose());\r\n            Ke.SetSubMatrix(12, 18, K2.Transpose());\r\n            ////Row 18\r\n            Ke.SetSubMatrix(18, 0, K4);\r\n           Ke.SetSubMatrix(18, 6, K3);\r\n            Ke.SetSubMatrix(18, 12, K2);\r\n            Ke.SetSubMatrix(18, 18, K1.Transpose());\r\n    \r\nIf I comment randomly any setsubmatrix from above, it gives different result....\r\nAs you see in excel, empty places are not even Zeros... that's really strange behaviour.\r\nIf you will need I can send you whole class.\r\nCould you investigate what is wrong with this function....\r\nThank You"},"comment":{"url":"https://api.github.com/repos/mathnet/mathnet-numerics/issues/comments/68746300","html_url":"https://github.com/mathnet/mathnet-numerics/issues/275#issuecomment-68746300","issue_url":"https://api.github.com/repos/mathnet/mathnet-numerics/issues/275","id":68746300,"user":{"login":"cdrnet","id":47147,"avatar_url":"https://avatars.githubusercontent.com/u/47147?v=3","gravatar_id":"","url":"https://api.github.com/users/cdrnet","html_url":"https://github.com/cdrnet","followers_url":"https://api.github.com/users/cdrnet/followers","following_url":"https://api.github.com/users/cdrnet/following{/other_user}","gists_url":"https://api.github.com/users/cdrnet/gists{/gist_id}","starred_url":"https://api.github.com/users/cdrnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdrnet/subscriptions","organizations_url":"https://api.github.com/users/cdrnet/orgs","repos_url":"https://api.github.com/users/cdrnet/repos","events_url":"https://api.github.com/users/cdrnet/events{/privacy}","received_events_url":"https://api.github.com/users/cdrnet/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T17:50:54Z","updated_at":"2015-01-05T17:50:54Z","body":"Ugh, I'll have a look!"}}