Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add diagonal to existing score matrix objects #13

Closed
jefferis opened this issue Mar 25, 2014 · 3 comments
Closed

add diagonal to existing score matrix objects #13

jefferis opened this issue Mar 25, 2014 · 3 comments
Assignees

Comments

@jefferis
Copy link
Collaborator

could just be an attribute in the ff.rds object

@jefferis
Copy link
Collaborator Author

library(flycircuit)
options("flycircuit.ffdir"=getwd())
mymat=fc_attach_bigmat('mymat.ff',envir=.GlobalEnv)
xdiag=flycircuit:::diagonal(mymat,rownames(mymat))
attr(mymat,'diagonal')=xdiag
stopifnot(all.equal(xdiag[1],as.numeric(mymat[1,1])))
saveRDS(mymat,'mymat.ffrds')

@jefferis
Copy link
Collaborator Author

Fixed on flybrain. Still need to see if the new objects work fine.

@jefferis
Copy link
Collaborator Author

jefferis commented Sep 8, 2014

We can close this now. Furthermore, now that we have the ability to get the diagonal from a big.matrix at reasonable speed, this is less of an issue even for bare big.matrix objects without an added diagonal attribute.

@jefferis jefferis closed this as completed Sep 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant