Skip to content

Support adding tensor of different orders #36

Open
@fredrikbk

Description

@fredrikbk

What is the most reasonable semantics for a(i) = b(i) + c? Does it mean:

  1. that we add c to every non-zero component in b, or
  2. that we add c to every component in b?

This is the same question as what is the most reasonable semantics for A(i,j) = B(i,j) + c(i).

If it is the latter, we need to stop handling scalars as a special case, to be ignored in the merge lattices and iteration schedules and simply multiplied in when computing. Rather we must merge with it, assuming it is a dense space.

Metadata

Metadata

Assignees

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