Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tensor Language Features #9

Open
VonTum opened this issue Sep 17, 2024 · 0 comments
Open

Tensor Language Features #9

VonTum opened this issue Sep 17, 2024 · 0 comments
Labels
enhancement New feature or request Request Input These are issues about the design of the language, and thus should be discussed

Comments

@VonTum
Copy link
Collaborator

VonTum commented Sep 17, 2024

Matrix language features are well-suited for hardware design. In HW design we often repeat the same structures many times.

Slicing

int[20] myInts
myInts[2:10] = [1, 2, 3, 4, 5, 6, 7, 8]

Array of Structs Field Transparency

Vec3[20] myVectors
myVectors.x += [1, 2, 3, ...]

Tensor operations

int[30][50] a
int[30][50] b

int[30][50] c = a + b

Multidimentional slicing

Vec3[20][30] myVectors
Vec3[13][2] subTensor = myVectors[0:13, 5:7]

Multidimentional reductions

int[20][30] myInts
int[2] sumOfChunk = myInts[+ 0:13, 5:7]
@VonTum VonTum added enhancement New feature or request Request Input These are issues about the design of the language, and thus should be discussed labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Request Input These are issues about the design of the language, and thus should be discussed
Projects
None yet
Development

No branches or pull requests

1 participant