Re: [eigen] Bounds checking in Eigen? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Bounds checking in Eigen?
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Fri, 21 May 2010 14:11:49 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=rD2YygSxPlCJnNlEw8FHhKpjeC4aK57w/LRygvU0zKo=; b=hXIMZ+YII2LHjSh8rTU5TuRRYn6NXCZwSIRlP3KnK7rwRBNrZEJ5vKAiWUdq+jbdB0 CQ9SgaLaByseirKizHkQPfTzOscrmJOycVRYOl4o2kx3QwqSIBlv9bM8s5NVGAR7wei0 fYMH/rUNxZPMRk2ZyUjYXyO5M4WmSN2T5JpO8=
- 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=KZBAfEUKkAVJnogTCFXE8d44u6CHaifcYgG+bRdG/JYKma/+auhLhhHnY06Gt9d760 +g/XoLPLr8pvh/7oWpNRMlXf58IIAokOcqsj9I5D8uuNLQN0J9PmJxtNZNsoS/v7gbma VJcL7lSxaPk71NhAAXDMnzut0HfOzZTs4j9gI=
Yes, by default (that is, as long as EIGEN_NO_DEBUG isn't defined),
Eigen checks everything with asserts, which means that Eigen calls
will never result in a bad memory access.
Check this by yourself by doing e.g. VectorXf v(3); v(5);
Benoit
2010/5/21 Manoj Rajagopalan <rmanoj@xxxxxxxxx>:
> Hi,
>
> This might be a noob question: when built without the EIGEN_NO_DEBUG, in
> fact built without any -D flags, does Eigen do any
> array-access-bounds-checking?
>
> Thanks,
> Manoj
>
>
>