[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] matrix / scalar
- From: Andy Somogyi <andy.somogyi@xxxxxxxxx>
- Date: Sat, 4 Dec 2010 00:51:55 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=mkZgoOr3ico0+E2iokFIGGoEPI9kT3sYbaPHl0XhWjo=; b=qxTZLd6JkRULXYmuBcDSkBGv6/UoJzAi8Buw/0ex1aKj5xySK7VZ5cOXwboO/G0O5M NogYBTZmiun+dZbSzjF+854WgAjWK1CTwV0G64dVBkKf0I/rkOHz1yqZUJiJTY+tRS7p 7vdsqWUf72BgHaQW17AM5UtbGEAs8Gqbumjwo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=A16y/uldTr2dCIh9XSq2EwmS9HhUm+REevxRe2TNobhP5Hv3Tcgj0sM+q2MXKyGOJa S5CieDRYugefbuQt27hgbtWdiHSJMCCNJBw90ygzi6S82RJO90+8RTmMuIomMks6hfSN gtC5KhFVSQEP9w/9if7jQKrTrF4DjQgk0wGBI=
Hey Guys,
what do you think about adding some operators to ease operating on a matrix with a scalar, i.e. what I'm thinking about is something like:
MatrixXi mat = ...;
// set all matrix values to scalar
mat = 1;
// add scalar to all matrix values
mat = mat + 1; // or optionally
mat += 1;