Thomas Lumley 11/10/2021

Is it binary?

Read Original

This technical article discusses the challenge of efficiently validating whether user-supplied adjacency matrices in R contain only binary values (0 and 1). It compares different strategies, including clever mathematical identities and direct inspection, with a focus on performance for large sparse Matrix objects where converting to dense format is inefficient or impossible.

Is it binary?

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser