|
From: <co...@ph...> - 2006-02-18 00:20:44
|
Travis Oliphant <oli...@ee...> writes: > Consider... > > a = rand(5,5) > b = mat(a) > > a += b > > What do you think the type of a now is? What should it be? > > Currently, this code would change a from an array to a matrix because > > add(a,b,a) returns a matrix. > > I'm thinking that we should establish the rule that if output arrays > are given, then what is returned should just be those output arrays... +1. -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |co...@ph... |