Your struct is not mutable, hence you can’t reassign the s field. Broadcasting is only for collections/containers, which a Float64 is not.
You can broadcast into the MVector field because it’s a mutable object.
Your struct is not mutable, hence you can’t reassign the s field. Broadcasting is only for collections/containers, which a Float64 is not.
You can broadcast into the MVector field because it’s a mutable object.