{"issue":{"milestone":null,"title":"Ambigious implicit BinaryUpdateOp","created_at":"2012-01-01T18:49:19Z","user":{"id":100929,"login":"afwlehmann","url":"https://api.github.com/users/afwlehmann","gravatar_id":"216e1a1457c0bcf4f961e8854bf2bd98","avatar_url":"https://secure.gravatar.com/avatar/216e1a1457c0bcf4f961e8854bf2bd98?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"labels":[],"updated_at":"2012-01-01T18:49:19Z","state":"open","id":2697844,"html_url":"https://github.com/scalala/Scalala/issues/41","closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Hi,\r\n\r\nwhen updating matrix elements by means of scalar multiplication with Double (not with Int etc.), a slight hickup occurs:\r\n\r\n```\r\nscala> val foo = DenseMatrix.eye[Double](3)\r\nfoo: scalala.tensor.dense.DenseMatrix[Double] = \r\n 1.00000   0.00000   0.00000  \r\n 0.00000   1.00000   0.00000  \r\n 0.00000   0.00000   1.00000  \r\n\r\nscala> foo(1,::) *= 5.0\r\n<console>:37: error: ambiguous implicit values:\r\n both object DenseVectorDMulDInto in object DenseVector of type object scalala.tensor.dense.DenseVector.DenseVectorDMulDInto\r\n and method opUpdateTensorScalar in trait TensorImplicitsLevel1 of type [K, V1, V2, Op <: scalala.operators.OpType](implicit op: scalala.operators.BinaryOp[V1,V2,Op,V1], implicit s: scalala.scalar.Scalar[V2])scalala.operators.BinaryUpdateOp[scalala.tensor.mutable.Tensor[K,V1],V2,Op]\r\n match expected type scalala.operators.BinaryUpdateOp[scalala.tensor.dense.DenseVectorRow[Double],Double,scalala.operators.OpMul]\r\n              foo(1,::) *= 5.0\r\n```\r\n\r\nwhereas\r\n\r\n```\r\nscala> foo(1,::) *= 5\r\nres3: scalala.tensor.dense.DenseVectorRow[Double] = \r\n 0.00000   5.00000   0.00000  \r\n```","number":41,"url":"https://api.github.com/repos/scalala/Scalala/issues/41","comments":0,"assignee":null},"action":"opened"}