You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2016/08/28 20:52:08 UTC
[1/2] commons-rng git commit: Unused class.
Repository: commons-rng
Updated Branches:
refs/heads/master 44c38a476 -> 88776e4fc
Unused class.
Duplicates functionality in "Long2IntArray".
Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/9cb29afa
Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/9cb29afa
Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/9cb29afa
Branch: refs/heads/master
Commit: 9cb29afa0c2e533992c88b717b3759b2f41eb9bd
Parents: 44c38a4
Author: Gilles <er...@apache.org>
Authored: Mon Aug 29 00:48:37 2016 +0200
Committer: Gilles <er...@apache.org>
Committed: Mon Aug 29 00:48:37 2016 +0200
----------------------------------------------------------------------
.../commons/rng/internal/util/LongMixInt.java | 50 --------------------
1 file changed, 50 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-rng/blob/9cb29afa/src/main/java/org/apache/commons/rng/internal/util/LongMixInt.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/rng/internal/util/LongMixInt.java b/src/main/java/org/apache/commons/rng/internal/util/LongMixInt.java
deleted file mode 100644
index 4622cf4..0000000
--- a/src/main/java/org/apache/commons/rng/internal/util/LongMixInt.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.commons.rng.internal.util;
-
-import org.apache.commons.rng.internal.source64.SplitMix64;
-
-/**
- * Uses a {@code long} value to seed a {@link SplitMix64} RNG and
- * create an {@code int[]} with the requested number of random
- * values.
- *
- * @since 1.0
- */
-public class LongMixInt implements SeedConverter<Long, int[]> {
- /** Size of the output array. */
- private final int size;
-
- /**
- * @param size Size of the output array.
- */
- public LongMixInt(int size) {
- this.size = size;
- }
-
- /** {@inheritDoc} */
- @Override
- public int[] convert(Long seed) {
- return SeedFactory.createIntArray(size, new SplitMix64(seed));
- }
-
- /** {@inheritDoc} */
- @Override
- public String toString() {
- return getClass().getSimpleName() + "(size=" + size + ")";
- }
-}
[2/2] commons-rng git commit: Unused class.
Posted by er...@apache.org.
Unused class.
Duplicates functionality in "Long2LongArray".
Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/88776e4f
Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/88776e4f
Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/88776e4f
Branch: refs/heads/master
Commit: 88776e4fc6927c37c05856ae5bf21419330c463c
Parents: 9cb29af
Author: Gilles <er...@apache.org>
Authored: Mon Aug 29 00:50:18 2016 +0200
Committer: Gilles <er...@apache.org>
Committed: Mon Aug 29 00:50:18 2016 +0200
----------------------------------------------------------------------
.../commons/rng/internal/util/LongMixLong.java | 56 --------------------
1 file changed, 56 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-rng/blob/88776e4f/src/main/java/org/apache/commons/rng/internal/util/LongMixLong.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/rng/internal/util/LongMixLong.java b/src/main/java/org/apache/commons/rng/internal/util/LongMixLong.java
deleted file mode 100644
index 197dd1c..0000000
--- a/src/main/java/org/apache/commons/rng/internal/util/LongMixLong.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.commons.rng.internal.util;
-
-import org.apache.commons.rng.internal.source64.SplitMix64;
-
-/**
- * Uses a {@code long} value to seed a {@link SplitMix64} RNG and
- * create a {@code long[]} with the requested number of random
- * values.
- *
- * @since 1.0
- */
-public class LongMixLong implements SeedConverter<Long, long[]> {
- /** Size of the output array. */
- private final int size;
-
- /**
- * @param size Size of the output array.
- */
- public LongMixLong(int size) {
- this.size = size;
- }
-
- /** {@inheritDoc} */
- @Override
- public long[] convert(Long seed) {
- final long[] out = new long[size];
- final SplitMix64 rng = new SplitMix64(seed);
- for (int i = 0; i < size; i++) {
- out[i] = rng.nextLong();
- }
-
- return out;
- }
-
- /** {@inheritDoc} */
- @Override
- public String toString() {
- return getClass().getSimpleName() + "(size: " + size + ")";
- }
-}