Dear all, I want to explore the nullspace of a matrix S: I currently use the function Null from the MASS package to get a basis for the null space: > S = matrix(nrow=3, ncol=5, c(1,0,0,-1,1,1,1,-1,-1,0,-1,0,0,0,-1)); S > MASS::Null(t(S)) My problem is that I actually need a nonnegative basis for the null space of S. There should be a unique set of convex basis vectors spanning a vector space in which each vector v satisfies sum (S %*% v) == 0 and min(v)>=0. Is there maybe an R function that can calculate that for me? I would appreciate any help, Thanks in advance,
Hannes -- View this message in context: http://r.789695.n4.nabble.com/convex-nonnegative-basis-vectors-in-nullspace-of-matrix-tp4548822p4548822.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org 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.