[eigen] Pass column by reference |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] Pass column by reference
- From: Carlos Becker <carlosbecker@xxxxxxxxx>
- Date: Fri, 21 May 2010 11:57:16 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=Khc5vfM6G0fyYs8FsOOhxSUBr9v9PaXr3iVnP12+vR4=; b=uJxOYHKnY2K348/QFPQ0lfXj7ZteYeq9xLPr5/JxO34LKhRd2x6OiUb/YP1UORV0e3 3P4khazy4zky86guys47QB/6QhJheN/AwGg5w95sr2Ryuevm4GrPIRdfZ9JWRvQojeHA TlMT8HvCXajWJjt1iHR966xZ2JrCt0eEfB6LM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=pM0PAJexFG/jjZL693TOR8iFbI9PVgARMwJbCvzBP0li0bLr+6jevVEdMnB3Kihpf9 fBXyyvFCPpp8gkktrrDY7Axk2FJg6xnpcF1rZG1pALN4E9Xub/Ye614fZ6X+0OQGbT9t HKomt+cdOHv7+PMdW6WhFnlN1iRo/rKfKVRPE=
Hi everyone, I was wondering if it is possible to do something like this:
void putSomethingInVector( VectorXf &data ) { work with data and modify it; }
---------------------------------------------------------------------
MatrixXf myMatrix(100,100);
putSomethingInVector( myMatrix.col(4) );
---------------------------------------------------------------------
I know it is not possible like that, but is there any way? or .col() returns a read-only reference? I was looking for something like colRef() but no luck
Thanks!
Carlos