Skip to content

ReferenceError: getDimensionSize is not defined #1

Open
@katopz

Description

@katopz
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions