mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Add matrix related intrinsics to dummy file
This commit is contained in:
@@ -5,6 +5,12 @@ package intrinsics
|
|||||||
// Package-Related
|
// Package-Related
|
||||||
is_package_imported :: proc(package_name: string) -> bool ---
|
is_package_imported :: proc(package_name: string) -> bool ---
|
||||||
|
|
||||||
|
// Matrix Related Procedures
|
||||||
|
transpose :: proc(m: $T/matrix[$R, $C]$E) -> matrix[C, R]E ---
|
||||||
|
outer_product :: proc(a: $A/[$X]$E, b: $B/[$Y]E) -> matrix[A, B]E ---
|
||||||
|
hadamard_product :: proc(a, b: $T/matrix[$R, $C]$E) -> T ---
|
||||||
|
matrix_flatten :: proc(m: $T/matrix[$R, $C]$E) -> [R*E]E ---
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
soa_struct :: proc($N: int, $T: typeid) -> type/#soa[N]T
|
soa_struct :: proc($N: int, $T: typeid) -> type/#soa[N]T
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user