Qurak

Linear algebra introduction tensors and arrays

Tutorial 4 passi, eseguiti in ordine in una sola sessione. Ogni passo è stato eseguito sul motore e l'output qui sotto è ciò che ha prodotto.

Passo 1
vec = {1, 2, 3}
Output
{1, 2, 3}
Passo 2
Dimensions[vec]
Output
{3}
Passo 3
tensor = { {{1, 2, 3, 4}, {4, 5, 6, 7}, {4, 5, 6, 7}}, {{1, 2, 3, 9}, {1, 2, 6, 5}, {1, 2, 6, 5}}}
Output
{{{1, 2, 3, 4}, {4, 5, 6, 7}, {4, 5, 6, 7}}, {{1, 2, 3, 9}, {1, 2, 6, 5}, {1, 2, 6, 5}}}
Passo 4
Dimensions[tensor]
Output
{2, 3, 4}

Funzioni usate

Ricette correlate

Tutte le ricette · Guida delle funzioni · Usa questo da un client MCP