[ 
https://issues.apache.org/jira/browse/GEOMETRY-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743392#comment-17743392
 ] 

Dimitrios Efthymiou commented on GEOMETRY-160:
----------------------------------------------

[~aherbert] Yes, I used ChatGPT to generate the use-cases, because
I don't know when you would need to know the indices of occurence of an element.
But since it is calculable, there must be a reason or two, right?
You say that I should look into what other general geometry libraries
do and suggest functions that they have that commons-geometry hasn't.
I am guessing you are talking about only widely used libraries for
Java or Python libraries, etc. right? What should the Jira ticket say in
that case? "Check if a point is on the vector – Matlab and NumPy does it".
I just need to know so I don't waste anyone's time.

> Implement getIndicesOfOccurenceOfElement(Vector x, double element)
> ------------------------------------------------------------------
>
>                 Key: GEOMETRY-160
>                 URL: https://issues.apache.org/jira/browse/GEOMETRY-160
>             Project: Commons Geometry
>          Issue Type: New Feature
>          Components: euclidean1D, euclidean2D, euclidean3D
>            Reporter: Dimitrios Efthymiou
>            Priority: Minor
>              Labels: features
>   Original Estimate: 5h
>  Remaining Estimate: 5h
>
> If we have a vector u = (2, 1, 3, 1, 7) and a number, say, 1 then it returns 
> a list of the indices 1 and 3



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to