numphp icon indicating copy to clipboard operation
numphp copied to clipboard

Working on SciPhp\Random class?

Open jehshPhilemon opened this issue 4 years ago • 7 comments

Hello again, I Was doing my exercise using this great library and I needed random class. The class is missing and I've written some function. I Want to know if you're working on this feature, if not yet, I can suggest my tiny functions( they use php native rand function ) -random::rand() -random::randn() -random::randint() -random::randrange() -random::choice() -random::normal() -random::shuffle() (I used numpy as reference, so these method are numpy like) Due to some difficulties, I can make a commit on github now. I'm adapting my random class to the lib now. After finishing ( to adapt it) I can send you a link if possible to check them. Bon weekend à vous!

jehshPhilemon avatar Jan 09 '21 19:01 jehshPhilemon

Hi, No I'm not currently working on random feature. So it will be with a great pleasure that I'll have a look at your implementation and merge it. It would have been better if you could make a pull but no problem. We'll find a solution ! Merci et comme nous sommes encore en janvier, je vous souhaite une très bonne année 2021!

landrok avatar Jan 10 '21 13:01 landrok

I'll send code when I'll be free( this week). Merci et Bonne année 2021 à vous aussi

jehshPhilemon avatar Jan 13 '21 07:01 jehshPhilemon

Hi, this is how I implemented random feature. As I have limited access to github, I released it (the only option I can use to upload file now) as a minor version 0.4.5. Archive is here. There are missing features and we can add them later if this is the right way.

jehshPhilemon avatar Jan 13 '21 22:01 jehshPhilemon

Hi, I see 2 branches (0.4.1 and 0.4.5) but when I download zip files, there are no changes nor no new files.

Did you make a git add and git commit before pushing tags?

landrok avatar Jan 14 '21 11:01 landrok

They are the same, I tried to edit 0.4.1-beta and I Updated it to 0.4.5( without uploading other files) . I thought the first was updated and the 0.4.1 would be deleted. Sorry for that, I don't have access to github client now (I use the web version, and it doesn't work as expected for me), that cause many issues.

jehshPhilemon avatar Jan 14 '21 19:01 jehshPhilemon

Any new updates? According to the documentation the random matrix function is already implemented but only in the version 0.5. But the latest available version is the 0.4.

Random::rand: https://sciphp.org/manual/en/random.rand.html

MichaelRinger avatar Jan 21 '22 23:01 MichaelRinger

Any new updates? According to the documentation the random matrix function is already implemented but only in the version 0.5. But the latest available version is the 0.4.

Random::rand: https://sciphp.org/manual/en/random.rand.html

Include it straight from github:

    "repositories": [
        {
          "type": "vcs",
          "url": "https://github.com/sciphp/numphp.git"
        }
      ],
    "require": {
        "sciphp/numphp": "dev-master"
    }

gakowalski avatar May 02 '23 16:05 gakowalski