[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ff3d-users] elements of vector

From: Stephane Del Pino
Subject: Re: [ff3d-users] elements of vector
Date: Mon, 12 Mar 2007 22:12:01 +0100
User-agent: KMail/1.9.5


in fact, this is not something that should work into ff3d, but you can 
turnaround it, using the function algebra.
vector a = (1,2,3);
cout << x(a) << " " << y(a) << " " << z(a) << "\n";
This is not beautiful, but it works. A better handling of vector would require 
much more work which has not shown to be a priority yet...

You can replace x,y and z by any scalar function (R^3->R).

Note that you can play with it:
vector b = (y(a)+x(a),y(a)-x(a),z(a));
cout << b << "\n";

Best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]