Skip to content

Treating scalars as scalars #3

@xorJane

Description

@xorJane

... rather than as matrices with single elements. This issue is related to #2.

Consider the index-free implementation of dot using FLAME. In the Matlab/Python implementation of FLAME, slicing and dicing results in chi_1 and psi_1 being represented as matrices. This is consistent with alpha being represented as a matrix, rather than a number, given the update

alpha += chi_1 + psi_1

I've chosen to represent alpha as a Number (consistent with my choice in this version to represent rank 1 objects as Vectors). For consistency, should I represent chi_1 and psi_1 as Numbers as well? I need to check if slicing and dicing ever results in chi_1 and psi_2 having multiple elements (I think this can happen but I haven't tested that case). If so, I may want to treat alpha as a matrix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions