Skip to content

Conversation

@tbetcke
Copy link
Contributor

@tbetcke tbetcke commented Oct 31, 2022

1.) Implemented associated types for operators and vectors.

OperatorBase now has two associated types In and Out for the scalar input and output type. Vector has an associted scalar type called Item. The trait methods have been adapted accordingly. This gives every object a native type. We could then implement adapters on top to allow conversion between different representations.

2.) I have made a proposal for a scalar trait type. It is a subset of the Num trait from the num crate. It does not require string conversion and only needs addition, multiplication, subtraction, and division. It has no remainder operation as this might not always make sense (consider the scalar type for example itself to be a dense matrix). Not sure yet if this is best but would be good to have a definition that allows arbitrary fields as scalar type.

3.) I updated the test_mult_sketchy test to succeed when the matvec panics.

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

Successfully merging this pull request may close these issues.

2 participants