Closed m-birke closed 1 week ago
Hi @m-birke , it's fill(value:scalar, numRows:size, numCols:size)
, see here.
This is sadly different (not sure why) to how numpy does it with np.full, and should also require the shape to be passed as a shape/tuple so this mixup is not possible.
B = fill(1, 5, 4);
print(sum(B, 1));
DenseMatrix(1x4, int64_t)
5 5 5 5
ups : P sry ..
but brings me to this #913
sum(B, 1)
returns a scalar assum(B)
but should return a (1 x m) (row) matrix