Re: [eigen] Propagating Max*AtCompileTime template parameters to decompositions |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Propagating Max*AtCompileTime template parameters to decompositions
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Mon, 8 Mar 2010 21:35:39 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=6b2/8EqjwWLksFHp5poyAFvhSdewO41fP7IP+/lWOXQ=; b=kW2/5XcKuKrGqs3/bkehtHfQyESilSiE6jO8vtb75UuO5PLWhX3slC5xbodOUF6wOz CaCOvDgCTPKR1n094MpNIbI4B/hGWWHyf9n1HK1EHsoV66wA/KuiCbBytM8HN5JZuqqs 7G4xzAfQnfQpGpGbqH1McOBKd005+ZQg0YIDE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=vXkDoPAg8niEKpqB9KLtKPxjlyU5n56Xq6YvltaSlqAiH+t5WXKuv4jQCZ3VSCpfUQ hMLLKNyLmbW+9p8B1s2LYGEa1ieRmzk9q6kjqs1Mgm1aJW8QszIXJiWGZml0BxbUBL6O VwAZ5byEP7MZYh8QpKPGunY8u2ySDub46gCRw=
2010/3/8 Adolfo Rodríguez Tsouroukdissian <dofo79@xxxxxxxxx>:
> <snip>
>>>
>>> >>>>> >>> Supreme refinement is to add a unit test for that. We already
>>> >>>>> >>> have
>>> >>>>> >>> the
>>> >>>>> >>> skeleton in the nomalloc test (test/nomalloc.cpp). Indeed, when
>>> >>>>> >>> EIGEN_NO_MALLOC is defined, any heap allocation will cause an
>>> >>>>> >>> assert
>>> >>>>> >>> failure, which in the context of unit tests we convert into an
>>> >>>>> >>> exception.
>>> >>>>> >>>
>>> >>>>> >>> So don't hesitate to expand the nomalloc.cpp test, just with
>>> >>>>> >>> new
>>> >>>>> >>> executable targets (CALL_SUBTEST_x for a new value of x up to
>>> >>>>> >>> 16) so
>>> >>>>> >>> that no single executable gets too big. Testing only 'float' is
>>> >>>>> >>> good
>>> >>>>> >>> enough.
>
> </snip>
>
> I wouldn't call it supreme refinement ;) but here goes my patch. Feel free
> to voice out suggestions/improvements.
Great, I applied your patch. This is exactly the kind of contribution
that helps a lot!
Benoit
>
> Best,
>
> Adolfo
>