mirror of
https://github.com/vale981/arb
synced 2025-03-06 01:41:39 -05:00
Merge pull request #123 from argriffing/remove-arb-vec-norm
MAINT: remove _arb_vec_norm which did not actually compute a norm
This commit is contained in:
commit
22928dc878
2 changed files with 0 additions and 13 deletions
9
arb.h
9
arb.h
|
@ -894,15 +894,6 @@ _arb_vec_dot(arb_t res, arb_srcptr vec1, arb_srcptr vec2, slong len2, slong prec
|
|||
arb_addmul(res, vec1 + i, vec2 + i, prec);
|
||||
}
|
||||
|
||||
ARB_INLINE void
|
||||
_arb_vec_norm(arb_t res, arb_srcptr vec, slong len, slong prec)
|
||||
{
|
||||
slong i;
|
||||
arb_zero(res);
|
||||
for (i = 0; i < len; i++)
|
||||
arb_addmul(res, vec + i, vec + i, prec);
|
||||
}
|
||||
|
||||
ARB_INLINE void
|
||||
_arb_vec_get_mag(mag_t bound, arb_srcptr vec, slong len)
|
||||
{
|
||||
|
|
|
@ -1558,10 +1558,6 @@ Vector functions
|
|||
|
||||
Sets *res* to the dot product of *vec1* and *vec2*.
|
||||
|
||||
.. function:: void _arb_vec_norm(arb_t res, arb_srcptr vec, slong len, slong prec)
|
||||
|
||||
Sets *res* to the dot product of *vec* with itself.
|
||||
|
||||
.. function:: void _arb_vec_get_mag(mag_t bound, arb_srcptr vec, slong len, slong prec)
|
||||
|
||||
Sets *bound* to an upper bound for the entries in *vec*.
|
||||
|
|
Loading…
Add table
Reference in a new issue