daphne-eu / daphne

DAPHNE: An Open and Extensible System Infrastructure for Integrated Data Analysis Pipelines
Apache License 2.0
67 stars 62 forks source link

Return scalar if single field of matrix is accessed and vise versa in DaphneDSL #905

Open m-birke opened 1 week ago

m-birke commented 1 week ago

An matrix indexing like M[0,0] should result in a scalar. And it should be possible to insert scalars directly into a matrix. For comparison like M[0,0] == 1 or assignment M[0,0] = 1 This would avoid further unnecessary typecasts like as.scalar(M[0,0])