Boost logo

Ublas :

From: Tony Sheh (sheh_at_[hidden])
Date: 2007-11-14 12:16:14


Hahaha yes, i did a benchmark:

uBLAS: 177.42 seconds
static array: 46.3 seconds

so yeah, i'm writing a template class for our needs, but i will check
out MTL4 when it comes out. i hope that they are keeping in mind
AltiVec and Sse.... =)

Thanks for all your help!

Yours,
Tony

On Nov 14, 2007, at 12:00 PM, ublas-request_at_[hidden] wrote:

> Send ublas mailing list submissions to
> ublas_at_[hidden]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> or, via email, send a message with subject or body 'help' to
> ublas-request_at_[hidden]
>
> You can reach the person managing the list at
> ublas-owner_at_[hidden]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ublas digest..."
>
>
> Today's Topics:
>
> 1. Re: strange vector resize (Gunter Winkler)
> 2. Re: strange vector resize (Janek Kozicki)
> 3. Re: strange vector resize (Maik Beckmann)
> 4. Re: strange vector resize (Janek Kozicki)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 13 Nov 2007 20:08:30 +0100
> From: Gunter Winkler <guwi17_at_[hidden]>
> Subject: Re: [ublas] strange vector resize
> To: ublas mailing list <ublas_at_[hidden]>
> Message-ID: <200711132008.30394.guwi17_at_[hidden]>
> Content-Type: text/plain; charset="utf-8"
>
> Am Dienstag, 13. November 2007 01:07 schrieb Tony Sheh:
>> Mainly we are concerned with cartesian vectors so i have designed a
>> class, BoostVector, that uses a vector<gfloat,
>> boost::numeric::ublas::bounded_array<double, 3> > for storage/
>> manipulation. I'm also using the operators.hpp to generate operations
>> between BoostVector objects that call operations defined by the ublas
>> headers.
>
> just a comment: ublas is designed with large vectors in mind, so
> please
> don't expect the best possible performance. Read also
> http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?
> Frequently_Asked_Questions_Using_UBLAS
>
>
>> the error i get is when i attempt to perform a subtraction between
>> two BoostVector objects. One vector has size 3, as expected, the
>> other has size 86. I dont' understand how the second vector can even
>> be resized to 86 given that i'm using bounded_array..... this vector
>> is involved in matrix multiplication with 3x3 matrices...... so i'm
>> at a loss to explain the size...
>
> This sounds quite confusing. Maybe this is simply an result of an
> out-of-bounds access to a vector - this should be caught in debug
> mode.
> Please try to extract a minimal compilable file that reproduces this
> behavior. Otherwise it is hard to help.
>
> mfg
> Gunter
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 189 bytes
> Desc: not available
> Url : http://lists.boost.org/MailArchives/ublas/attachments/
> 20071113/2bf405f5/attachment.bin
>
> ------------------------------
>
> Message: 2
> Date: Tue, 13 Nov 2007 21:30:42 +0100
> From: Janek Kozicki <janek_listy_at_[hidden]>
> Subject: Re: [ublas] strange vector resize
> To: ublas_at_[hidden]
> Message-ID: <20071113213042.0f72de70_at_absurd>
> Content-Type: text/plain; charset=US-ASCII
>
>> Am Dienstag, 13. November 2007 01:07 schrieb Tony Sheh:
>
>>> boost::numeric::ublas::bounded_array<double, 3> > for storage/
>>> is involved in matrix multiplication with 3x3 matrices...... so i'm
>
> small 3D vector and 3x3 matrix. perhaps even quaternions... you need
> MTL4, which is currently in development. boost::ublas is not what you
> need, it will be slow with 3D vectors.
>
> http://www.osl.iu.edu/research/mtl/mtl4/
>
> it shall become part of boost in a year or two.
>
> But if you need something working right now... well you could try
> wildmagic library, this is what I'm using for now. But I'll switch to
> MTL4 ASAP.
>
> --
> Janek
> Kozicki |
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 13 Nov 2007 22:13:13 +0100
> From: Maik Beckmann <maikbeckmann_at_[hidden]>
> Subject: Re: [ublas] strange vector resize
> To: ublas_at_[hidden]
> Message-ID: <200711132213.13385.maikbeckmann_at_[hidden]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Am Dienstag 13 November 2007 21:30:42 schrieb Janek Kozicki:
>> small 3D vector and 3x3 matrix. perhaps even quaternions... you need
>> MTL4, which is currently in development. boost::ublas is not what you
>> need, it will be slow with 3D vectors.
>>
>> http://www.osl.iu.edu/research/mtl/mtl4/
>>
>> it shall become part of boost in a year or two.
>>
>> But if you need something working right now... well you could try
>> wildmagic library, this is what I'm using for now. But I'll switch to
>> MTL4 ASAP.
>
> Hello,
>
> Is there a svn/cvs repository with public read access? I didn't
> find one at
> first glace.
>
> Why they want me to subscribe their mailing list before I can
> access their
> archive? odd...
>
> - Performance:
> Usually I multiply a 4x4 transformation matrix with a 4xN matrix
> (N affine
> points/vectors). Do you think that mtl4 is faster by design for
> this kind of
> operations?
>
> Regards,
> Maik
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 13 Nov 2007 22:33:58 +0100
> From: Janek Kozicki <janek_listy_at_[hidden]>
> Subject: Re: [ublas] strange vector resize
> To: ublas_at_[hidden]
> Message-ID: <20071113223358.4dfca8d0_at_absurd>
> Content-Type: text/plain; charset=US-ASCII
>
> Maik Beckmann said: (by the date of Tue, 13 Nov 2007 22:13:13
> +0100)
>
>> Is there a svn/cvs repository with public read access? I didn't
>> find one at
>> first glace.
>>
>> Why they want me to subscribe their mailing list before I can
>> access their
>> archive? odd...
>>
>> - Performance:
>> Usually I multiply a 4x4 transformation matrix with a 4xN matrix
>> (N affine
>> points/vectors). Do you think that mtl4 is faster by design for
>> this kind of
>> operations?
>
> I don't know, ask on their mailing list :) About other points also.
>
> Those guys were quite helpful and responsive on the list, past week.
>
> --
> Janek
> Kozicki |
>
>
> ------------------------------
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
>
>
> End of ublas Digest, Vol 36, Issue 9
> ************************************
>
>