Skip to content

Commit

Permalink
Migrate transpose.js
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed Dec 30, 2020
1 parent c1bfee1 commit 70164b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/aliases.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { lin, stats } from 'science';

export { zeroes } from 'science';
export const { dot, length, normalize } = lin;
export const { dot, length, normalize, transpose } = lin;
export const { mean } = stats;
8 changes: 3 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { zeroes, dot, length, normalize, mean } from './aliases';
export { zeroes, dot, length, normalize, mean, transpose } from './aliases';
export {
all_pairs_distance,
all_pairs_distance_floyd_warshall,
Expand Down Expand Up @@ -67,9 +67,7 @@ export {
} from './sort_order';
export { spectral_order } from './spectral_order';
export { stablepermute } from './stablepermute';
//export {
//} from '';
//export {
//} from '';
export { sum } from './sum';
export { transposeSlice } from './transpose';
//export {
//} from '';
4 changes: 1 addition & 3 deletions src/transpose.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
reorder.transpose = science.lin.transpose;

reorder.transposeSlice = function(a, start, end) {
export function transposeSlice(a, start, end) {
if (arguments.length < 3) {
end = a[0].length;
if (arguments.length < 2) {
Expand Down

0 comments on commit 70164b9

Please sign in to comment.