Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: getDimensionSize is not defined #1

Open
katopz opened this issue May 1, 2020 · 0 comments
Open

ReferenceError: getDimensionSize is not defined #1

katopz opened this issue May 1, 2020 · 0 comments

Comments

@katopz
Copy link

katopz commented May 1, 2020

export const getMeanAsRowVector = (matrix) => {
  const n = getDimensionSize(matrix, 2);
  const vectors = Array(n).fill().map((_, i) => math.eval(`matrix[:, ${i + 1}]`, { matrix }));
  return vectors.reduce((result, vector) => result.concat(math.mean(vector)), []);
};

Seem obvious here that getDimensionSize is calling from nowhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant