← Back to team overview

yade-users team mailing list archive

Re: [Question #194486]: How to define a matrix in the c++ code ?

 

Question #194486 on Yade changed:
https://answers.launchpad.net/yade/+question/194486

    Status: Open => Answered

Sergei Dorofeenko proposed the following answer:
Somehow so:

Matrix3r mat1,mat2;
mat<<11,12,13,  21,22,23,  31,32,33;
mat=mat*mat;

yade uses eigen3 library, so see doc on http://eigen.tuxfamily.org/dox/

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.