Skip to content

Commit

Permalink
Fixed wording
Browse files Browse the repository at this point in the history
  • Loading branch information
superbobry committed Nov 1, 2016
1 parent 514660f commit 81d1a3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/jetbrains/bio/viktor/Random.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fun F64Array.quantile(q: Double = 0.5,
* @since 0.2.0
*/
fun F64Array.shuffle(randomGenerator: RandomGenerator = DEFAULT_RANDOM) {
check1D(this)
check1D(this) // although this could be generalized.

if (size <= 1) {
return
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/org/jetbrains/bio/viktor/Serialization.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fun NpyArray.asF64Array() = asDoubleArray().asF64Array().reshape(*shape)

/** Writes a given matrix to [path] in NPY format. */
fun NpyFile.write(path: Path, a: F64Array) {
// We could getaway without doing a double copy of tranposed
// We could getaway without doing a double copy of transposed
// matrices here once `npy` supports Fortran order.
val dense = if (a.isDense) a else a.copy()
write(path, dense.flatten().toDoubleArray(), shape = a.shape)
Expand Down

0 comments on commit 81d1a3f

Please sign in to comment.