[eigen] Re: ideas about the corner types |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: [eigen] Re: ideas about the corner types
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Fri, 5 Feb 2010 02:11:44 -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; bh=1gvii/n53lQlBYYBU2L5A8dXGw55fsPX2ymW0cGUbKA=; b=NAJcX7HMqvdF3uNzUcjIE9W/xoVl1V76NGuim3zonM2RPAI0EP98jXLwTn7t2+bteG f19H69jvgBY6bFO9RtTno0E1L572ISSymrnGJoEXM+iWBYyQBka726gUlZ4SJD4Bacwi 0YWolzFRBOIPSt0oR6TNSzUO9RTuth26gT7gc=
- 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; b=AqF5tfY8H8kgLJonl/5vOt6OQlxVJSyVfYBvep7l+QdW5EPpw4Krt3ranRX/TkpekX X9p8ZCeF/58Me3TUnl6Bh3d47//u1JCCSP/ul9C9Ht4HUhKxO4eVbdhrnUkjHDn3VvwP 72/vVAwu1Qp8+SubdoaEzc47Y07b2qm7i7M50=
2010/2/5 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> Hi,
>
> 1)
>
> Currently matrix.corner(TopLeft,3,3) takes TopLeft as a runtime
> parameter. This is based around the assumption that the compiler
> resolves this at compile time. In practice that seems to work although
> I only checked GCC. Here's an idea to resolve this at runtime:
I mean at compile time, of course.
> let
> TopLeft be an object of type CornerType<TopLeft_t>, etc.. taking a
> common template CornerType type allows to write the function only
> once, yet have a guarantee that that stuff resolves at compile time.
>
> 2)
>
> Many times we just want the bottom N rows of a matrix. So why not
> introducing Bottom, Top, etc... new corner types. Taking only one size
> parameter instead of 2. That would make that stuff more elegant to use
> in practice, more justified to exist (currently in many cases the
> interest of that seems questionable).
>
> Benoit
>