No matching definitions.

linalg/sized

src/linalg/sized.tur

statically-sized float vectors and matrices (Track C / U4).

defopaque

LaVecN

(LaVecN [n] :int))
defn

lavecn-zeros

(lavecn-zeros [n])

a fresh length-k vector of zeros. The static length is

defn

lavecn-free

(lavecn-free [n])

free a vector and its backing buffer.

defn

lavecn-len

(lavecn-len [n])

runtime element count (equals the static `n`).

defn

lavecn-get

(lavecn-get [n])

bounds-checked element read at index i.

defn

lavecn-set!

(lavecn-set! [n])

bounds-checked element write at index i.

defn

lavecn-dot

(lavecn-dot [n])

dot product. Both operands share `n`, so a length mismatch

defn

lavecn-add

(lavecn-add [n])

element-wise sum (shared `n`); returns a fresh vector.

defn

lavecn-sub

(lavecn-sub [n])

element-wise difference (shared `n`); returns a fresh vector.

defn

lavecn-scale

(lavecn-scale [n])

multiply every element by s; returns a fresh vector.

defn

lavecn-norm

(lavecn-norm [n])

Euclidean (L2) norm.

defopaque

LaMatN

(LaMatN [m n] :int))
defn

lamat-zeros

(lamat-zeros [m n])

a fresh r x c matrix of zeros; the static shape is pinned

defn

lamat-free

(lamat-free [m n])

free a matrix and its backing buffer.

defn

lamat-rows

(lamat-rows [m n])

runtime shape (equal to the static m / n).

defn

lamat-cols

(lamat-cols [m n])
defn

lamat-get

(lamat-get [m n])

bounds-checked element access at (i, j).

defn

lamat-set!

(lamat-set! [m n])
defn

lamat-add

(lamat-add [m n])

element-wise; both operands share shape (m, n).

defn

lamat-sub

(lamat-sub [m n])
defn

lamat-scale

(lamat-scale [m n])

multiply every element by s.

defn

lamat-mul

(lamat-mul [m k n])

matrix product: (m x k) * (k x n) -> (m x n). The inner

defn

lamat-transpose

(lamat-transpose [m n])

(m x n) -> (n x m).

Internal definitions
__lavecn-new-zeroed-raw
__lavecn-free-raw
__lavecn-len-raw
__lavecn-get-raw
__lavecn-set-raw
__lavecn-dot-raw
__lavecn-zip-raw
__lavecn-scale-raw
__lavecn-norm-raw
__lamat-new-zeroed-raw
__lamat-free-raw
__lamat-rows-raw
__lamat-cols-raw
__lamat-get-raw
__lamat-set-raw
__lamat-zip-raw
__lamat-scale-raw
__lamat-mul-raw
__lamat-transpose-raw