You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@community.apache.org by Dimitrios Efthymiou <ef...@gmail.com> on 2023/07/13 15:00:37 UTC
[math] how can I reuse functions within the math numbers project?
Hello everyone. I am implementing a function that checks
if 2 integers are relatively prime. I am putting this code in
the commons_numbers_primes project. The problem is that
my algorithm uses greatest common divisor. Instead of reimplementing
myself, I thought that I should reuse ArithmeticUtils::gcd, but
the commons_numbers_primes project does not import the
commons_numbers_core project. What should I do?
Thank you
Re: [math] how can I reuse functions within the math numbers project?
Posted by Gilles Sadowski <gi...@gmail.com>.
Le jeu. 13 juil. 2023 à 20:18, Shane Curcuru <as...@shanecurcuru.org> a écrit :
>
> It's quite exciting seeing new energy in the Apache Commons project,
> still going strong after all these years! But it's probably a better
> idea to continue the conversation on the dev@commons mailing list,
Oops, I hadn't realized we were on the wrong ML.
Sorry,
Gilles
> [...]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@community.apache.org
For additional commands, e-mail: dev-help@community.apache.org
Re: [math] how can I reuse functions within the math numbers project?
Posted by Shane Curcuru <as...@shanecurcuru.org>.
It's quite exciting seeing new energy in the Apache Commons project,
still going strong after all these years! But it's probably a better
idea to continue the conversation on the dev@commons mailing list, so
other folks in the community can get excited too.
https://commons.apache.org/proper/commons-math/mailing-lists.html
--
- Shane
Member
The Apache Software Foundation
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@community.apache.org
For additional commands, e-mail: dev-help@community.apache.org
Re: [math] how can I reuse functions within the math numbers project?
Posted by Gilles Sadowski <gi...@gmail.com>.
Hello.
Le jeu. 13 juil. 2023 à 17:31, Gilles Sadowski <gi...@gmail.com> a écrit :
>
> Hi.
>
> Le jeu. 13 juil. 2023 à 17:01, Dimitrios Efthymiou
> <ef...@gmail.com> a écrit :
> >
> > Hello everyone. I am implementing a function that checks
> > if 2 integers are relatively prime. [...]
Please create a JIRA report ("New feature").
Thanks,
Gilles
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@community.apache.org
For additional commands, e-mail: dev-help@community.apache.org
Re: [math] how can I reuse functions within the math numbers project?
Posted by Gilles Sadowski <gi...@gmail.com>.
Le jeu. 13 juil. 2023 à 17:39, Dimitrios Efthymiou
<ef...@gmail.com> a écrit :
>
> Just did. I just wanted to ensure that I was allowed to do that. BTW, i
> noticed that there is no issues tab in the numbers repo on GitHub
JIRA is the issue-tracking system:
https://issues.apache.org/jira/projects/NUMBERS
> and there
> is only 7 PRs (8 including mine). Is this an active project?
Yes.
Gilles
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@community.apache.org
For additional commands, e-mail: dev-help@community.apache.org
Re: [math] how can I reuse functions within the math numbers project?
Posted by Dimitrios Efthymiou <ef...@gmail.com>.
Just did. I just wanted to ensure that I was allowed to do that. BTW, i
noticed that there is no issues tab in the numbers repo on GitHub and there
is only 7 PRs (8 including mine). Is this an active project?
On Thu, 13 Jul 2023, 16:33 Gilles Sadowski, <gi...@gmail.com> wrote:
> Hi.
>
> Le jeu. 13 juil. 2023 à 17:01, Dimitrios Efthymiou
> <ef...@gmail.com> a écrit :
> >
> > Hello everyone. I am implementing a function that checks
> > if 2 integers are relatively prime. I am putting this code in
> > the commons_numbers_primes project. The problem is that
> > my algorithm uses greatest common divisor. Instead of reimplementing
> > myself, I thought that I should reuse ArithmeticUtils::gcd,
>
> +1
>
> > but
> > the commons_numbers_primes project does not import the
> > commons_numbers_core project. What should I do?
>
> Add the "core" module as a dependency in the "primes" one.
>
> Regards,
> Gilles
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@community.apache.org
> For additional commands, e-mail: dev-help@community.apache.org
>
>
Re: [math] how can I reuse functions within the math numbers project?
Posted by Gilles Sadowski <gi...@gmail.com>.
Hi.
Le jeu. 13 juil. 2023 à 17:01, Dimitrios Efthymiou
<ef...@gmail.com> a écrit :
>
> Hello everyone. I am implementing a function that checks
> if 2 integers are relatively prime. I am putting this code in
> the commons_numbers_primes project. The problem is that
> my algorithm uses greatest common divisor. Instead of reimplementing
> myself, I thought that I should reuse ArithmeticUtils::gcd,
+1
> but
> the commons_numbers_primes project does not import the
> commons_numbers_core project. What should I do?
Add the "core" module as a dependency in the "primes" one.
Regards,
Gilles
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@community.apache.org
For additional commands, e-mail: dev-help@community.apache.org