adrien
55906e0ab7
Small fixs
2026-05-11 17:12:37 +02:00
adrien
7844aacfce
Added a UnitParser to get Dimensions and Scales from a str
2026-05-04 19:10:06 +02:00
AdrienBouvais
f37a196b15
Fixed new Tensor to be everything (Scalar, Vector, Matrix and above)
2026-04-27 09:11:24 +02:00
adrien
d32de3fe82
Converted Base test to new Scalar
2026-04-26 01:18:41 +02:00
adrien
4b01dfe412
Replaced Vector with Quantity
Deploy MkDocs to Garage / build-and-deploy (push) Failing after 25s
2026-04-26 01:07:12 +02:00
adrien
c350ffd1d6
Working vector initiate
Deploy MkDocs to Garage / build-and-deploy (push) Failing after 30s
2026-04-26 00:40:10 +02:00
adrien
0257ee5d21
Added Quantity that will be both Scalar and Vector, using only @Vector
...
I did some benchmark, and @Vector(1, type) is just as fast as type for
float and around 40% slower for int.
But the traide off is ok for me, because for @Vector(>1, type), we are
between 2 and 32x faster! And I dont think single value int will be use
for high performance computing, so I am ok with how simple it make
everything.
Because now I dont have to one struct that use @Vector and one that use
just type, I can just use one. Making it even easier to integrate GPU
later. I will even be able to have a single place in my code with a + -
* and / basically. A single function for all, so I only need to optimize
that one.
2026-04-25 22:36:48 +02:00
adrien
3a4783cfa1
Benchmark SIMD vs Native
2026-04-25 18:47:13 +02:00
adrien
46380a95da
Renamed Quantity to Scalar and QuantityVec to Vector
2026-04-21 19:18:45 +02:00
AdrienBouvais
db9d07ddd6
.
2026-04-21 15:42:26 +02:00
AdrienBouvais
8234591f6e
.
2026-04-21 15:14:44 +02:00
AdrienBouvais
52e58829eb
Added test to BaseQuantity and a benchmark for Vectors
2026-04-21 14:19:22 +02:00
AdrienBouvais
f2e18da797
Forgot to save this from previous commit
2026-04-21 13:33:27 +02:00
AdrienBouvais
fd423f2bf6
Changed QuantityVec3 to QuantityVecX for vectors of any size
2026-04-21 13:08:37 +02:00
AdrienBouvais
de210588ee
Moved some fn
2026-04-21 11:44:48 +02:00
AdrienBouvais
a484e2e7da
Optimized length to be optimized for int
2026-04-21 11:43:29 +02:00
AdrienBouvais
38bf79e741
Removed old function usless after optimization
2026-04-21 11:26:39 +02:00
AdrienBouvais
d9ab2f304a
Optimized divBy to prevent type conversion
2026-04-21 11:23:55 +02:00
AdrienBouvais
19de4e1dd2
Optimized Quantity.to
2026-04-21 11:02:10 +02:00
adrien
b0e06bf4cf
Added test runner and better table print in benchmark
2026-04-21 00:07:12 +02:00
adrien
eb02b3eb96
Changed add ans sub to prevent losing info
2026-04-20 23:56:26 +02:00
adrien
b3cee0588f
First implementation
2026-04-20 23:38:49 +02:00