Softanza
StartFrançais
Softanza
The library documents itself · Numeric & optimization

stzNumBuffer

30 own methods · 7 forms written with extensions, listed under their method

the source: base/number/stzNumBuffer.ring(opens in a new tab) · All classes · The area reference: Numeric & optimization

Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean

Examples: 0 come from the library's tests; 12 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzNumBuffer([ 2, 4, 4, 4, 5, 5, 7, 9 ]). 18 methods have none yet. Examples run on 2026-10-03 12:54 inside the library at commit 0e72e2e2c.

Method
Explanation, as the source carries it
init
(no comment in the source: the name reads as a sentence) initno extension
Handle
the handle, and the honest burdenno extension
Haro has no destructors, so this is not optional for a large buffer. 3 examples runno extension
IsFreed
(no comment in the source: the name reads as a sentence) is freed
composed example
o1 = new stzNumBuffer([ 2, 4, 4, 4, 5, 5, 7, 9 ])
? o1.IsFreed()
#--> 0
composed from the signature, run for this page
no extension
Resize
Same as Free: Haro has no destructors, so this is not optional for a large buffer.no extension
NumberOfItems
readsalso written: Size · Count
composed example
o1 = new stzNumBuffer([ 2, 4, 4, 4, 5, 5, 7, 9 ])
? o1.NumberOfItems()
#--> 8
composed from the signature, run for this page
no extension
IsEmpty
(no comment in the source: the name reads as a sentence) is empty
composed example
o1 = new stzNumBuffer([ 2, 4, 4, 4, 5, 5, 7, 9 ])
? o1.IsEmpty()
#--> 0
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) item 1 examples runalso written: NthItem
composed example
o1 = new stzNumBuffer([ 2, 4, 4, 4, 5, 5, 7, 9 ])
? o1.Item(2)
#--> 4
composed from the signature, run for this page
no extension
The materialised VIEW -- one crossing, taken when you actually want to look. 2 examples runalso written: Contentno extension
ToStzListOfNumbers
The buffer is NOT freed here: it is still yours, and Haro has no destructors to decide otherwise. Free it when you are done with it.also written: ToListOfNumbersno extension
ToStzList
(no comment in the source: the name reads as a sentence) to stz listno extension
Copy
(no comment in the source: the name reads as a sentence) copyno extension
SetItem
writes: each is a full pass over resident memory, no crossingno extension
FillWith
(no comment in the source: the name reads as a sentence) fill withQCSXTZZZIBWU
RangeFrom
(no comment in the source: the name reads as a sentence) range fromQCSXTZZZIBWU
AddScalar
(no comment in the source: the name reads as a sentence) add scalarQCSXTZZZIBWU
Scale
(no comment in the source: the name reads as a sentence) scaleQCSXTZZZIBWU
AddBuffer
elementwise against another buffer of the SAME length; a mismatch is refused rather than half-appliedQCSXTZZZIBWU
SubtractBuffer
(no comment in the source: the name reads as a sentence) subtract bufferQCSXTZZZIBWU
MultiplyBuffer
(no comment in the source: the name reads as a sentence) multiply bufferQCSXTZZZIBWU
reductions: a scalar out, nothing marshalled --------------------- Summed with NEUMAIER COMPENSATION. A naive total loses the low bits of every addend once it grows large relative to them -- add 1e16 and then a thousand 1.0s and the naive answer is still 1e16. This carries the lost part along. 1 examples run
composed example
o1 = new stzNumBuffer([ 2, 4, 4, 4, 5, 5, 7, 9 ])
? o1.Sum()
#--> 40
composed from the signature, run for this page
no extension
Mean
(no comment in the source: the name reads as a sentence) meanalso written: Average
composed example
o1 = new stzNumBuffer([ 2, 4, 4, 4, 5, 5, 7, 9 ])
? o1.Mean()
#--> 5
composed from the signature, run for this page
no extension
Min
(no comment in the source: the name reads as a sentence) min
composed example
o1 = new stzNumBuffer([ 2, 4, 4, 4, 5, 5, 7, 9 ])
? o1.Min()
#--> 2
composed from the signature, run for this page
no extension
Max
(no comment in the source: the name reads as a sentence) max
composed example
o1 = new stzNumBuffer([ 2, 4, 4, 4, 5, 5, 7, 9 ])
? o1.Max()
#--> 9
composed from the signature, run for this page
no extension
Dot
(no comment in the source: the name reads as a sentence) dotalso written: DotProductno extension
VarianceSample
the convention is NAMED, as everywhere else since phase 0 -- and it is asked of stats.zig rather than decided herealso written: Variance
composed example
o1 = new stzNumBuffer([ 2, 4, 4, 4, 5, 5, 7, 9 ])
? o1.VarianceSample()
#--> 4.57
composed from the signature, run for this page
no extension
VariancePopulation
(no comment in the source: the name reads as a sentence) variance population
composed example
o1 = new stzNumBuffer([ 2, 4, 4, 4, 5, 5, 7, 9 ])
? o1.VariancePopulation()
#--> 4
composed from the signature, run for this page
no extension
StddevSample
(no comment in the source: the name reads as a sentence) stddev samplealso written: Stddev · StandardDeviation
composed example
o1 = new stzNumBuffer([ 2, 4, 4, 4, 5, 5, 7, 9 ])
? o1.StddevSample()
#--> 2.14
composed from the signature, run for this page
no extension
StddevPopulation
(no comment in the source: the name reads as a sentence) stddev population
composed example
o1 = new stzNumBuffer([ 2, 4, 4, 4, 5, 5, 7, 9 ])
? o1.StddevPopulation()
#--> 2
composed from the signature, run for this page
no extension
Show
(no comment in the source: the name reads as a sentence) showno extension