Commit Graph
318 Commits
Author SHA1 Message Date
Tzanio Kolev bac8f5c330 Merge branch 'master' into xsdk-cpissues-dev 2017-11-02 07:43:37 -07:00
Tzanio a9e531b46c Replace the SUNDIALS macros TRUE/FALSE with SUNTRUE/SUNFALSE (change in their 3.0.0 release) 2017-10-31 12:14:21 -07:00
Geoffrey Malcolm Oxberry 28893fae7c Vector: change C-style math lib calls to C++-style 2017-10-23 16:05:43 -07:00
Geoffrey Malcolm Oxberry 3e31157848 Vector::Norml2: use LAPACK dnrm2 algorithm
Use the LAPACK dnrm2 algorithm to compute the l2 norm instead of the
square root of the inner product of a vector with itself. This
modification prevents overflow by ensuring that any squared term has a
nonnegative argument of 1.0 or less. However, it also disables OpenMP
parallelism (because mfem::Vector::operator* is no longer being used);
this functionality would have to be reintroduced in a subsequent
commit.
2017-10-23 15:31:19 -07:00
Geoffrey Malcolm Oxberry 1d979e14ca Vector: update Normlp to use LAPACK algorithm 2017-10-23 15:22:30 -07:00
Veselin Dobrev a899cd7b56 In class Vector, add method DistanceSquaredTo that returns the
Euclidean distance squared to another vector.

Also, add a function that performs the same operation, given two
arrays of double values.
2017-10-18 19:18:11 -07:00
Geoffrey Malcolm Oxberry 2cf493dc51 Vector::Normlp: update outdated comment
Update an outdated comment; my counting was off...
2017-10-17 16:00:27 -07:00
Geoffrey Malcolm Oxberry 2177c625ef Make Vector::Normlp less prone to overflow
Use a scaling trick (also performed in C++'s std::hypot) to prevent
overflow of $\ell^{p}$ norm of `mfem::Vector`s in some cases (e.g.,
large values of $p$).
2017-10-17 15:50:56 -07:00
Veselin Dobrev fa9b867764 Proposal for a new implementation of the support for delta
coefficients in linear forms.
2017-08-28 21:01:38 -07:00
Stephan Gelever 5e19782b2a Prevent segfault in DenseMatrixEigensystem, Vector
Copying a DenseMatrixEigensystem when using LAPACK
is done by value.  The dynamic memory is incorrectly copied
which leads to a segfault on delete.  Also, a segfault occurs
when copying a vector that has a nonzero size, but null data.
2017-05-07 21:33:44 -07:00
Tzanio 1569425857 Version 3.3 2017-01-28 22:05:47 -08:00
Jakub Cerveny 125ff226e4 Version 3.2 2016-06-30 10:37:30 -07:00
Tzanio dbae60fe32 Version 3.1 2016-02-16 15:45:48 -08:00
Tzanio Kolev 9d7774a03e Version 3.0 2015-01-26 15:07:34 -08:00
Tzanio Kolev fa169e4b92 Version 2.0 2011-11-18 11:39:53 -08:00
Tzanio Kolev 29ae8fb6ac Version 1.2 2011-04-08 15:27:24 -07:00
Tzanio Kolev 075e00e9be Version 1.1 2010-09-13 13:31:38 -07:00
Tzanio Kolev 6bfa95b718 Version 1.0 2010-07-21 13:14:05 -07:00