From 81d1a3f249bc6010430194780704df54ff524cbe Mon Sep 17 00:00:00 2001 From: Sergei Lebedev Date: Tue, 1 Nov 2016 14:45:20 +0300 Subject: [PATCH] Fixed wording --- src/main/kotlin/org/jetbrains/bio/viktor/Random.kt | 2 +- src/main/kotlin/org/jetbrains/bio/viktor/Serialization.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/org/jetbrains/bio/viktor/Random.kt b/src/main/kotlin/org/jetbrains/bio/viktor/Random.kt index 87fc7d1..dcb0037 100644 --- a/src/main/kotlin/org/jetbrains/bio/viktor/Random.kt +++ b/src/main/kotlin/org/jetbrains/bio/viktor/Random.kt @@ -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 diff --git a/src/main/kotlin/org/jetbrains/bio/viktor/Serialization.kt b/src/main/kotlin/org/jetbrains/bio/viktor/Serialization.kt index 6749fbd..0d29321 100644 --- a/src/main/kotlin/org/jetbrains/bio/viktor/Serialization.kt +++ b/src/main/kotlin/org/jetbrains/bio/viktor/Serialization.kt @@ -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)