Comments (2)
It's the same as mod(x, T)
: https://docs.julialang.org/en/v1/base/math/#Base.mod
from julia.
I'm guessing mod(x, T)
is that way by analogy to the standard english infix usage "x mod n" and its corresponding "x % n" notation. But afaik clamp
doesn't have either of those, so it seems more like the round
family.
from julia.
Related Issues (20)
- What does `sizeof` return? HOT 9
- Make pastable REPL modes extensible
- Full source build for Julia 1.10.2 has broken HOT 2
- Full source build uses unstable archives
- Explicit GC.gc call does not reclaim memory on 1.11 and master HOT 7
- "@ref adding-tests-to-packages" is broken HOT 2
- BUG: `clamp(typemax(UInt64), Int64)` errors HOT 4
- Base.summarysize misses null byte of String HOT 1
- Native BFloat16 support not working on AMD EPYC 9554 HOT 6
- Code warntype should show print the unstable SSA values in red/yellow
- Unoptimal inference when function has error in a implicit return HOT 3
- Bad backtraces because codeloc compression does not roundtrip properly HOT 2
- make install with Julia v1.11.0-beta1 "Tarball with dependencies" hangs (Building HTML documentation) HOT 1
- Dot broadcast doesn't work with `do ... end` HOT 1
- Provide a julia alternative of `pthread_once` HOT 2
- `opaque_closure` test segfaulting on aarch64-linux-gnu HOT 4
- Use of `Base.MainInclude.eval` no longer works on 1.11 HOT 6
- Allow symlink'd startup.jl file HOT 2
- Error in Sqrt for julia > 1.10.2 HOT 5
- More helpful error message with `open(~/path/to/file.txt)` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from julia.