Difference between revisions of "What is Tensor?"


 
(7 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
  
In simplifying terms, we can think of tensors as multidimensional arrays of numbers, as a generalization of scalars, vectors, and matrices.
+
In simplifying terms, we can think of tensors as multidimensional arrays of numbers, as a generalization of scalars, vectors, and matrices. <ref>Introduction to S. Raschka. 2017. Artificial Neural Networks and Deep Learning, A Practical Guide with Applications in Python. p.7. http://leanpub.com/ann-and-deeplearning</ref>
  
# Scalar, <math>R</math>
+
# Rank 0 Tensor, Scalar, {{#tag:math|\mathbb{R} }}
# Vector
+
# Rank 1 Tensor, Vector, {{#tag:math|\mathbb{R}^n }}
# Matrix
+
# Rank 2 Tensor, Matrix, {{#tag:math|\mathbb{R}^n \times \mathbb{R}^m}}
# 3-Tensor
+
# Rank 3 Tensor, Tensor, {{#tag:math|\mathbb{R}^n \times \mathbb{R}^m \times \mathbb{R}^p}}
  
  
Line 15: Line 15:
 
[[File:Tensors.png]]
 
[[File:Tensors.png]]
  
 +
{{References}}
 
[[Category:Blog]]
 
[[Category:Blog]]

Latest revision as of 11:35, 15 November 2020

H. Kemal Ilter
2020


In simplifying terms, we can think of tensors as multidimensional arrays of numbers, as a generalization of scalars, vectors, and matrices. [1]

  1. Rank 0 Tensor, Scalar, [math]\mathbb{R} [/math]
  2. Rank 1 Tensor, Vector, [math]\mathbb{R}^n [/math]
  3. Rank 2 Tensor, Matrix, [math]\mathbb{R}^n \times \mathbb{R}^m[/math]
  4. Rank 3 Tensor, Tensor, [math]\mathbb{R}^n \times \mathbb{R}^m \times \mathbb{R}^p[/math]


When we describe tensors, we refer to its “dimensions” as the rank (or order) of a tensor, which is not to be confused with the dimensions of a matrix. For instance, an m × n matrix, where m is the number of rows and n is the number of columns, would be a special case of a rank-2 tensor. A visual explanation of tensors and their ranks is given is the figure below.

Tensors.png



References

  1. Introduction to S. Raschka. 2017. Artificial Neural Networks and Deep Learning, A Practical Guide with Applications in Python. p.7. http://leanpub.com/ann-and-deeplearning