Sir I am new user of R. I am facing problems in solving matrices. for example >a<-array(c(3,4,1),dim=c(3,1)) >b<-a%o%a >b
, , 1, 1 [,1] [1,] 9 [2,] 12 [3,] 3 , , 2, 1 [,1] [1,] 12 [2,] 16 [3,] 4 , , 3, 1 [,1] [1,] 3 [2,] 4 [3,] 1 >solve(b) Error in solve.default(b) : only square matrices can be inverted >solve(b,a) Error in solve.default(b, a) : 'b' must be compatible with 'a' Sir I request you to help me in this regard. AMINA SHAHZAD Department of Statistics GC University Lahore, Pakistan. Email: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [[alternative HTML version deleted]] ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.