Skip to content

Instantly share code, notes, and snippets.

@fpopic
Created September 13, 2017 15:31
Show Gist options
  • Select an option

  • Save fpopic/d66033c32b3b3303562d092eeea5f7f4 to your computer and use it in GitHub Desktop.

Select an option

Save fpopic/d66033c32b3b3303562d092eeea5f7f4 to your computer and use it in GitHub Desktop.
/**
* Column-major dense matrix.
* The entry values are stored in a single array of doubles with columns listed in sequence.
* For example, the following matrix
* {{{
* 1.0 2.0
* 3.0 4.0
* 5.0 6.0
* }}}
* is stored as `[1.0, 3.0, 5.0, 2.0, 4.0, 6.0]`.
*
* @param numRows number of rows
* @param numCols number of columns
* @param values matrix entries in column major
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment