Skip to content

Resize output #20

@gelever

Description

@gelever

Should output be automatically resized? Or should the user provide a correctly sized output?
The issue is if the resize is done automatically it is silent and may not be what the user expects. However, manually specifying sizes is tedious.

Examples:

Resize automatically

SparseMatrix A = GetAFromSomeWhere();
DenseMatrix B = GetBFromSomeWhere();
DenseMatrix C;
A.Mult(B, C);

Resize required by user

SparseMatrix A = GetAFromSomeWhere();
DenseMatrix B = GetBFromSomeWhere();
// DenseMatrix C; // Should fail assertion
DenseMatrix C(A.Rows(), B.Cols());
A.Mult(B, C);

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions