Can I reliably use &(Foo.data()[0]) to pass a pointer to matrix data?
"Ramsey, James J CIV (US)" <[email protected]>
| Newsgroups | gmane.comp.lib.boost.ublas |
|---|---|
| Message-ID | <B5E7491E7F72164997C336AA7C85A5FC14E33436@ucolhp9g.easf.csd.disa.mil> |
I know that with std::vector<Scalar> foo, I can pass a pointer to its data (e.g., to a function that expects an argument of Scalar*), and it should consistently work. Will something similar hold true if, say, I have a uBlas vector of Scalars Foo? That is, can I pass &(Foo.data()[0]) as a Scalar* argument in a function? _______________________________________________ ublas mailing list [email protected] http://lists.boost.org/mailman/listinfo.cgi/ublas Sent to: [email protected]