Skip to content

Commit

Permalink
Migrate poweriteration.js
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed Dec 30, 2020
1 parent e94479e commit 7cd144e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ export { pca1d, pca_order } from './pca_order';
export { array_to_dicts, dicts_to_array, pcp, parcoords } from './pcp';
export { permutation, inverse_permutation } from './permutation';
export { permute, permute_inplace, permutetranspose } from './permute';
//export {
//} from '';
export { poweriteration, poweriteration_n } from './poweriteration';
//export {
//} from '';
//export {
Expand Down
4 changes: 2 additions & 2 deletions src/poweriteration.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function normalize(v) {
return norm;
}

reorder.poweriteration = function(v, eps, init) {
export function poweriteration(v, eps, init) {
if (! eps)
eps = 1e-9;

Expand Down Expand Up @@ -40,7 +40,7 @@ reorder.poweriteration = function(v, eps, init) {
return tmp;
};

reorder.poweriteration_n = function(v, p, init, eps, start) {
export function poweriteration_n(v, p, init, eps, start) {
if (! eps)
eps = 1e-9;

Expand Down

0 comments on commit 7cd144e

Please sign in to comment.