From: Greg K. <gp...@be...> - 2001-12-11 20:53:20
|
Spacesaver doesn't propagate through matrix multiplies: >>> import Numeric >>> x=Numeric.zeros((3,3), Numeric.Float32) >>> x.savespace(1) >>> x array([[ 0., 0., 0.], [ 0., 0., 0.], [ 0., 0., 0.]],'f') >>> x.spacesaver() 1 >>> y = Numeric.matrixmultiply(x, x) >>> y array([[ 0., 0., 0.], [ 0., 0., 0.], [ 0., 0., 0.]],'f') >>> y.spacesaver() 0 |