[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 56 KB, 848x599, 1_Wv9adjSwmgl4wLE7lSTRIw.png [View same] [iqdb] [saucenao] [google]
11831690 No.11831690 [Reply] [Original]

What is tensor?
Define tensor in C#.
Is it some kind of array?

>> No.11831692

>>11831690
>Is it some kind of array?
Yes. Essentially an n-d array.

>> No.11831702

>>11831690
matrix is a nice gimmick for rank-2 tensors, but it is just a comfy blanket, it all falls apart when the rank goes higher than 2.
this guy's style is silly, but bear with it, it gives a good general picture of tensors for beginners
https://youtu.be/bpG3gqDM80w

>> No.11831718

Tensor is as much of an array as a triangle is an array of numbers. You can even consider proofs to be arrays of numbers. The fact that someone can be reduced to an array of numbers in some particular situation with some particular choices, doesn't mean it's "essentially just an array of numbers". Only low -IQ mathlet with no conception of higher order concepts can think that way.

>> No.11831757
File: 237 KB, 1000x2349, computer science.jpg [View same] [iqdb] [saucenao] [google]
11831757

>> No.11831764

>>11831718
>Only low -IQ mathlet with no conception of higher order

It's quite contrary. People with higher iq are better at generalizing aren't they? You can't call someone low-iq for him making higher generalzation. In short, you are contradicting yourself.

>> No.11831794

>>11831757
Based. Fuck autistic CSfags who are too stupid to properly understand anything.
An [math] (r,s) [/math] tensor is a multilinear map [math] (V^*)^r\times V^s \to \mathbb{F} [/math] where [math] V [/math] is a vector space over [math] \mathbb{F}, [/math] and [math] V^* [/math] is the dual of [math] V. [/math]

>> No.11831799

>>11831690
tensor is a certain abstract quantity which can be represented by an array of numbers, in general more than 2-dimensional, once coordinates have been chosen. if we change the coordinates, the numbers also change, and they do so according to a certain transformation law. physicists and engineers usually take this transformation law as the definition of tensors which leads to the phrase "tensor is something which transforms as a tensor".

>> No.11831806

https://www.youtube.com/watch?v=uaQeXi4E7gA

>> No.11831811

>>11831757
BASED BACHELOR DEGREE

and he's right, you know

>> No.11832043

>>11831690
A tensor is an element of a tensor product, being a space of multilinear functions.
/thread

>> No.11832060

>>11832043
>Writing an incorrect definition, then threading yourself, even though a better, correct definition is already written.
Retard.

>> No.11832083

>>11831690
OP is a CS faggot.

>> No.11832115

>>11832060
>>>11832043 (You) #
>>Writing an incorrect definition, then threading yourself, even though a better, correct definition is already written.
>Retard.
Brainlet. My definition is more correct.

>> No.11832144

>>11832115
>An element of a tensor product
A tensor product is not a set, and you haven't defined a tensor product.
>being a space of multilinear functions
You don't specify what you are referring to here.
Also, you don't make reference to rank.
Your definition is suggestive of a high schooler who read an article about tensors a month ago and now thinks he's the authority on them.

>> No.11832159

>>11832144
stop this madness. the anon's explanation is awful, but nothing he wrote is incorrect.

>> No.11832172

>>11832159
Fine, I'll change my contention to that.

>> No.11832175
File: 1.20 MB, 400x267, TIMESAND___4cookie-monster-100-years-of-cookie-history-video-0.gif [View same] [iqdb] [saucenao] [google]
11832175

>>11831690
In general, a tensor is map from vectors to vectors. Depending on the number of indices, it might be a map from vectors to numbers or from vectors to another tensor.

Tensors eat vectors.

>> No.11832182

Also, if you want a deeper understanding of tensors, then look at the 3D stress tensor. It has a nice wiki that explains how each component of the tensor is the pressure or shear force on each face of a cube pushing in each direction. Then you can contract it with a vector and see what happens, and then it's pretty easy to understand what it means when I say "tensors eat vectors."

>> No.11832200

a (p,q) tensor can be thought as some abstract thing eats q vectors and returns p of them, or eats p+q and gives you a number, or any arbitrary combination of which arguments to eat or spit out vectors such that its always linear in each of the p+q arguments

the rigorous concepts of multilinearity, dual space and isomorphisms are what let you do this and let you represent them as a p+q dimensional array of numbers

>> No.11832205

>>11832200
I should also say that "returning 0 vectors" means returns a number/scalar

i.e. a billinear form/metric is (0,2) because it eats 2 vectors and returns their inner product which is a number = 0 vectors returned, but with extra structure you can shuffle things around to a (1,1) endomorphism/linear map which you supply 1 vector and are given 1 vector, both are represented by 1+1=2+0 dimensional arrays.

>> No.11832236

>>11831690
>is it some kind of array
It would be recursively defined using arrays, but they are not themselves exactly arrays or matrices. They are a certain generalization of vector spaces whose construction will become obvious with study into linear algebra despite remaining annoying to work with
>>11831757
>tee here implementation is the same as the definition
I bet you think CS majors would say the approximation for inverse square root is the definition of an inverse square root.

>> No.11832276

>>11832236
>>tee here implementation is the same as the definition
>I bet you think CS majors would say the approximation for inverse square root is the definition of an inverse square root.
Dude just look at
>>11831692
clearly a lot of people think that tensors are just multidimensional arrays of numbers

>> No.11832308

Why do you even have to ask?
It's obvious just from your picture that a tensor is an item with N dimensions where each dimension can contain a defined amount of values

>> No.11832313

>>11832308
That's totally wrong and retarded.

>> No.11832318

>C#
You have bigger problems in your life to solve buddy

>> No.11832320

>>11832308
nope

>> No.11832322

>>11831794
I'm retarded but curious, do you mind elaborating?

>> No.11832366

>>11832322
https://en.wikipedia.org/wiki/Multilinear_map

>> No.11832398

>>11832322
I'll assume you already know what a vector space is.
If [math] V [/math] is a vector space over a field [math] \mathbb{F}, [/math] then its dual space [math] V^* [/math] is the space of linear maps (called functionals) that take elements of [math] V [/math] to elements of [math] \mathbb{F}. [/math] A concrete example would be to think of elements of [math] V [/math] as being column vectors, and then elements of [math] V^* [/math] are row vectors - check that under usual matrix multiplication, a row vector premultiplying a column vector results in a scalar.

Now a map [math] \phi:V_1\times V_2\times ... \times V_n\to\mathbb{F} [/math] is multilinear if it is linear in every variable - e.g. recall that [math] \phi(v_1,v_2) [/math] is linear in its first entry if [math] \phi(av_1+w,v_2)=a\phi(v_1,v_2)+\phi(w,v_2), [/math] where [math] a\in\mathbb{F}, [/math] and [math] w,v_1,v_2\in V. [/math]

So now suppose you have some [math] (r,s) [/math] tuple, [math] (w_1^*,w_2^*,...,w_r^*,w_1,w_2,...,w_s), [/math] where the [math] w_i^* \in V^*, [/math] and the [math] w_j\in V [/math] (note that e.g. [math] w_1 [/math] isn't necessarily related to [math] w_1^* [/math] ). Then an [math] (r,s) [/math] tensor would act on that tuple and return a scalar, i.e. an element of the field [math] \mathbb{F}. [/math]

>> No.11832455

>>11832322
>>11832398
Now given some vectors [math] v_1,...,v_r\in V [/math] and [math] v_1^*,...,v_s^*\in V^*, [/math] we can define an [math] (r,s) [/math] tensor as [math] v_1\otimes...\otimes v_r\otimes v_1^*\otimes ...\otimes v_s^*, [/math] which acts on an [math] (r,s) [/math] tuple (in post above) as [eqn] v_1\otimes...\otimes v_r\otimes v_1^*\otimes ...\otimes v_s^*(w_1^*,...,w_r^*,w_1,...,w_s)=w_1^*(v_1)...w_r^*(v_r)v_1^*(w_1)...v^*(s)(w_s), [/eqn] recalling that functionals act on vectors to give a scalar. Now an [math] (r,s) [/math] tensor needn't act only on an [math] (r,s) [/math] tuple. It can act on any tensor - for example [eqn] v_1\otimes...\otimes v_r\otimes v_1^*\otimes ...\otimes v_s^*(w_1,...,w_s)=v_1^*(w_1)...v_s^*(w_s)v_1\otimes ...\otimes v_r. [/eqn] There we see an [math] (r,s) [/math] tensor acting on a [math] (0,s) [/math] tuple (or a [math] (s,0) [/math] tensor - see below) to give us a [math] (r,0) [/math] tensor. Hopefully you can see what rank you get when it acts on an arbitrary tensor.

Now just note that the set of tuples [math] (w_1^*,...,w_r^*,w_1,...,w_s) [/math] has a one to one correspondence with the set of [math] (s,r) [/math] tensors, [math] w_1\otimes ...\otimes w_s\otimes w_1^*\otimes ...\otimes w_r^*, [/math] which shows why it is natural to allow tensors to act on arbitrary tensors.

>> No.11832469

>>11831692
fpbp
>>11832398
>>11832276
>>11832236
>>11832313
>>11832320
>>11832175
>>11832043
>>11832060
>>11832115
>>11831757
>>11831794
>>11831718
>>11831702
>define tensor in C#
>in C#
>b-but it's not an array!
Wanna know why I know for a fact you're the same fags who refuse to use serious programming languages even if it will get your work done faster?

>> No.11832470

>>11832398
>>11832455

Is this what mathfags find interesting?

This is just pure autism

>> No.11832511

>>11832470
>Is this what mathfags find interesting?
No
>This is just pure autism
Yeah, no shit; it's basically a single definition padded with elaboration as anon asked for.
The definition right here >>11831794 demonstrates about the amount of thought that a mathfag would put into it.

>> No.11832531

>>11832469
how to BTFO /sci/

>> No.11832773

>>11832398
>>11832455
I've done a lot of linear algebra between QM, but the notation is just so dense for me you know? I'll try to digest this.

>> No.11832836

>>11831690
gradient of a field is a vector field. gradient of a vector field is a tensor. subsequent gradients of those vector fields are tensors of increasing order.

>> No.11832873

>>11832175
Thanks, my understanding isn't beyond an array of numbers, but this definition helps me most

>> No.11833087

>>11832469
>multiple answers saying “it’s not an array but any implementation would use them in the definition”
>hurr you guys don’t know prongrammin
You’re illiterate, stupid, or both.

>> No.11833477

>>11832276
>clearly a lot of people think that tensors are just multidimensional arrays of numbers
I do not think that they are *just* that, but if you want to break it down to the simplest description "an n-d array" is exactly what you want.

>> No.11833564

>>11832398
You fucking incel

>> No.11833596

>>11832455
why does advanced maths have so many white power symbols

>> No.11834002

>>11831690
It's a list of numbers used in a data science model. Say you have some sensors for picking up weather data and you want to find out if it's going to rain. The numbers inputted into the function from those sensors, the lists of other numbers they are used in operations with (like matrix multiplication for example), and the single number the function outputs (a list can be just 1) are all tensors.

>> No.11834012

>>11831794
/thread

Some intuition:

Break down into covariant and contravariant cases.

1d) A map V->F is basically an element of V*
1d) A map V*->F is basically a vector
2d) A map VxV->F is a bilinear map, can be thought of as an abstraction of area in some sense

For other cases, there's lots of ways to think about it by "(un)currying". For example, a map VxV*-->F can be thought of as V-->Hom(V*,F)=V**=V, so is basically an endomorphism.

They're literally just covariant and contravariant multilinear maps involving a single vector space, its dual, and underlying field.

>> No.11834680

>>11834002
>It's a list of numbers used in a data science model.
Lol. Are you retarded?

> The numbers inputted into the function from those sensors
Which weather sensor has a digital data input? WTF are you on about?

> the lists
Lol.
A list is not a tensor you fucking idiot. They are not even arrays.

>> No.11834686

>>11831690
A tensor is an object that transforms like a tensor.
t. physichad

>> No.11834763

>>11834002
Wtf

>> No.11834810

>>11831690
It's a generalization of matrices.

>> No.11834965

Can every tensor be expressed as an n-dimensional array? Yes or no? I don't care about whether that's the actual definition. I just want to know if it's equivalent.

>> No.11834984

>>11831794
So how do you do this in code?

>> No.11835007

>>11834984
A tensor can be described through its actions upon the basis vectors, so you can just write down the definition. For the finite dimensional case the dual is just the Vector space of linear maps from a given vector space to the reals. So you have a mapping which goes from a tuple of elements of the duals and a tuple of elements of the vector space to some arithmetic type, this is really simple stuff.

>> No.11835013

>>11831690
>C#.
>>>/g/et out and stay out

>> No.11835014

>>11831718
what is a tensor but not an array? let’s start with rank 2 / matrix to keep it simple

>> No.11835017

>>11831794
>understanding
>while it’s purely knowledge based

>> No.11835027

>>11834984
I'd assume it's pretty straightforward. I don't know much about coding, and I only really know C, but I think you can create a struct, with two sets of arrays - one for the covariant, one for the contravariant indices. It's obvious how you can then define multiplication, etc.
Coding with tensors is not really interesting at all; it's just menial busy-work.

>> No.11835040

>>11835014
the linear map [math]\frac{d}{dx} \colon C^{\infty}(\mathbb{R}) \to C^{\infty}(\mathbb{R})[/math]

>> No.11835047

>>11835040
what is this?
and why does it not look like anon’s definition of V* x V -> F

>> No.11835051

>>11835047
tensor-hom adjunction. any map [math]V^* \times V \to \mathbb{F}[/math] is the same as (naturally corresponds to) a map [math]V \to V[/math].

>> No.11835054

>>11835051
that is neat. But wouldn’t this lose some form of information from F?

And your example is basically an array that contains operators instead of numbers right?

>> No.11835056

>>11835054
>But wouldn’t this lose some form of information from F?
no, the underlying field is an information which comes with the vector space V
>And your example is basically an array that contains operators instead of numbers right?
no. tensors are not "basically an array" and this is no exception. this anon (I'm not him) >>11831718 is right and his analogy with the triangle is spot on.

>> No.11835064

>>11835056
not that guy, but how is the triangle example spot on? *every* triangle can be reduced to a set of numbers, not just some particular cases. whether this is a useful interpretation is not directly important

>> No.11835066

>>11835056
well if I understand your example correctly, the only thing that prevents me from writing it as an array is that it contains infinite elements. which really is “basically an array”

>> No.11835072

>>11835066
btfo

>> No.11835082

>>11835064
>*every* triangle can be reduced to a set of numbers, not just some particular cases.
in the exact same way as *every* tensor can be reduced to a set of numbers
>>11835066
is it so incomprehensible that just because you can represent something as an array doesn't mean it's "basically an array" ?

>> No.11835096

>>11835064
>>11835066
>>11835014
Let me write down
(2,3,6,1,4123,512313,621323,3213123,6422,12323,232). Tell me what mathematical object this represents.

>> No.11835104

>>11835096
>Tell me what mathematical object this represents.
A tuple, up to embedding.

>> No.11835106

>>11835096
Let me tell you what it represents: it's 2 vectors in R^5. Did you get it right?

>> No.11835107
File: 889 KB, 240x160, 1582738939565.gif [View same] [iqdb] [saucenao] [google]
11835107

>>11835104
Wrong! You must be an idiot!
>>11835106
Here I actually lied! It's not 2 vectors in R^5, it's actually the polynomial 2 + 3x + 6x^2 + 4123x^3 +... ! I bet you feel stupid now, don't you?

>> No.11835109

>>11835082
>*every* tensor can be reduced to a set of numbers
Which set of numbers is >>11835040?

>>11835066
If you were to write down that set is 5 in it?

>> No.11835110

>>11835107
>it's actually the polynomial 2 + 3x + 6x^2 + 4123x^3 +... !
The tuples can be embedded into the polynomials, so clearly I was right.

By the way, this is how polynomials are usually implemented in software, as tuples.

>> No.11835111
File: 3.31 MB, 348x420, funnymonkeyreadsbook.gif [View same] [iqdb] [saucenao] [google]
11835111

>>11835107
I actually lied here as well! It's neither a polynomial nor a pair of vectors in R^5. It's actually a 2-simplex (a triangle) embedded in R^3 that is the convex hull of the points with coordinates (6,1,4123), (512313,621323,3213123), (6422,12323,232)! How crazy is that! You must be a retard if you couldn't immediately spot that this is a triangle.

>> No.11835115
File: 3.12 MB, 400x296, 1576493903995.gif [View same] [iqdb] [saucenao] [google]
11835115

>>11835110
Literally everything in maths can be represented as an array of numbers you fucking autistic retard, that's my whole fucking point. The fact that something can be embedded as an array of numbers doesn't mean that it's essentially an array of numbers. You lose almost all information the moment you encode it as an array of numbers all of which you need to keep in your head to be able to understand what is going on. If that were not the case you would be immediately able to say what mathematical object I mean by
(2,3,1,2,3,4,122,5124,2323)
Holy fucking shit the absolute state of this board.

>> No.11835116

>>11835111
Still a tuple up to embedding.

>> No.11835118
File: 13 KB, 366x54, 2020-06-25 03-27-34.jpg [View same] [iqdb] [saucenao] [google]
11835118

>>11833087
>Not an array
Hold on let me just

>> No.11835121

>>11835109
pick some basis [math]\alpha = (f_i)[/math] of [math]C^{\infty}(\mathbb{R})[/math], put [math]a^i_j = i[/math]-th coordinate of [math]\frac{d}{dx}f_j[/math] with respect to [math]\alpha[/math]. [math](a^i_j)[/math] is the array.

>> No.11835122

>>11835115
>Literally everything in maths can be represented as an array of numbers
See >>11835109.

>> No.11835124

>>11835122
>See >>11835109.
see >>11835121

>> No.11835127

>>11835118
;)

>> No.11835129

>>11835121
But you can not reconstruct the tensor from the array alone. Clearly they can not be identified.
Try again.

>> No.11835131

>>11835124
>>>11835122 (You) #
>>See >>11835109 (You) #.
>see >>11835121 #
See >>11835129

>> No.11835132

>>11835118
(;

>> No.11835134

>>11835096
depends on what the brackets entail, for me it’s a standard vector.

>> No.11835135

>>11835134
For me, it's a N=11, tuple.

>> No.11835136
File: 69 KB, 692x1024, 409.jpg [View same] [iqdb] [saucenao] [google]
11835136

>>11835122
You're missing the fucking point. Whenever you have a well-defined mathematical object you can encode the definition to numbers. I can encode the definition "let x be the smallest natural number such that x has more than 300 distinct divisors". I can translate every character into a number and that way faithfully represent this number as an array of numbers, each of whose entry represents a character of my definition.
The point that I'm making is that while this is used to implement computations with a lot of mathematical objects, the fact that you can do it in no way implies that the mathematical object itself is merely the numerical representation that your implementation uses. Implicit in this implementation is the very numerous assumptions that you hold in your head of what the numers in your implementations actually represent. The numbers just by themselves are meaningless. As I've demonstrated in the previous example >>11835096
>>11835106
>>11835107
>>11835111
, you can write down an array of numbers that can represent a vast multitude of completely different mathematical objects. Just by looking at the array of numbers it is IMPOSSIBLE to tell what mathematical object it is. This means that mathematical objects such as vectors, triangles, tensors are NOT just arrays of numbers. They can be represented and implemented BY arrays of numbers just like literally everything else in maths but that IN NO WAY implies that arrays of numbers is all that they are. The most important part of the object is not the array of numbers but the implicit meaning you hold in your head of what those numbers represent.

>> No.11835137

>>11835129
I don't see what's your point now. if you got confused, my point is that every tensor can be represented by an array, but it's not an array per se.

>> No.11835138

>>11835135
what’s the difference?

>> No.11835139

>>11835138
The implementation.

>> No.11835140

>>11835115
so every tensor is an array but not every array is a tensor?

>> No.11835142

>>11835137
>I don't see what's your point now.
What you wrote down is a tuple, up to embedding.
Which means it does not carry the "meta" information about it.

>>11835136
and?

>> No.11835145

>>11835140
>so every tensor is an array
A tensor is not an array. A given tensor can be REPRESENTED by an array in infinitely many ways, just like literally every other well-defined mathematical object. But the moment you represent it as an array, a stranger looking at the array would have no idea what it is unless you tell him that it's actually a REPRESENTATION of a tensor.

>> No.11835146
File: 166 KB, 945x261, 1518301580940.png [View same] [iqdb] [saucenao] [google]
11835146

>>11832398
>>11832455
this is why I hate math. All the definitions are fucking autistic shit just throwing symbols and big words around which give you no idea of how it works. Then you do one example and find out you just do some stupid simple shit and it all makes sense and you wonder why the fuck mathfags have to make it sound so complicated.

>> No.11835147

>>11835142
>What you wrote down is a tuple, up to embedding.
>Which means it does not carry the "meta" information about it.
in other words, it can be represented as an array, but it's not an array per se. that's what I've been saying the whole time.

>> No.11835149

>>11835145
You have yet to define a difference other than the name, doesn't sound very scientific to me.

>> No.11835152

>>11835147
Why did you say I was wrong and called me an idiot? In >>11835107.

>> No.11835153
File: 35 KB, 365x450, b005e4074bd5505f95dc2c2da1135d1c.jpg [View same] [iqdb] [saucenao] [google]
11835153

>boss asks you to code an infinite dimensional vector

>> No.11835154

>>11835152
not me.

>> No.11835157

>>11835149
An array can not be uniquely identified with a tensor. Neither can a tensor be uniquely identified with an array.

>doesn't sound very scientific to me.
Mathematics is not a science.

>> No.11835160

>>11834984
Like this
>int myArray[10][10][10]

>> No.11835162

>>11835145
so i tell him it’s a tensor then it is the same as an array?
btw isn’t this distinction literally the same as >>11835051?

I really only wanted to know if I can represent every tensor as array in principle or if there are exceptions.

>> No.11835166

>>11835153
let x = (1, 2, ..)

This is valid Haskell by the way, there is no issue with representing infinite vectors.

>> No.11835169

>>11835157
>They are not equal
So since it's not differentiable in code, show me in memory how it is different

>> No.11835172

>>11835146
mostly to make the stuff as widely applicable as possible. shit’s defined in a way to be able to work with any abstract objects as long as they fulfill the necessary requirements.

>> No.11835173
File: 37 KB, 400x400, iZfir3BO_400x400.jpg [View same] [iqdb] [saucenao] [google]
11835173

>>11835166
>boss asks you to take a fourier transform of that

>> No.11835176

>>11835169
>>They are not equal
Where did I say that?

>>11835169
>So since it's not differentiable in code
A linear mapping is of type list of arithmetic type -> list of arithmetic type an array is of type list of list of arthimetic type.

>show me in memory how it is different
Look at the type signatures? They will be stored with the data.

>> No.11835180

>>11835173
Ask him for a better computer since it takes so long.
Obviously you can write it down, it will just take an infinite amount of time...

>> No.11835181

>>11835162
>btw isn’t this distinction literally the same as >>11835051 (You)?
no, because the sets {maps V -> V} and {maps V* x V -> F} are isomorphic so-called naturally. the correspondence is cannonical, roughly in the sense that it doesn't require making any arbitrary choice along the way. on the other hand, representing a tensor as an array requires choice of a basis.
in other words, if you ask two people to give you an array for a tensor, you will get two different answers and there's no reason to prefer one or the other. if you ask them to transform a map V->V into a map V*xV -> F you get the same answer.

>> No.11835192

>>11835162
>so i tell him it’s a tensor then it is the same as an array?
if you tell him it's a tensor, the type of the tensor, the vector space and the basis with respect to which is the tensor represented, ONLY then he can reconstruct the tensor.

>> No.11835197

>>11835162
>really only wanted to know if I can represent every tensor as array in principle
You can literally represent every well-defined object as an array. You can represent this whole thread as just an array of numbers.

>> No.11835200

>>11835197
>You can represent this whole thread as just an array of numbers.
And in fact that is exactly what your computer is doing.

>> No.11835204

>>11835200
Exactly.

>> No.11835248

>>11835197
Yes, but is that an intuitive form of storage? The question is really more like "Is an array an intuitive way to represent tensors?".

>>11835192
What do you mean by type? The dimension and size? That should be implied in the array already. And the basis should also have an intuitive (obvious) representation as an array. I really don't see why you guys have a problem with this.

>> No.11835316

>>11835248
>What do you mean by type?
Have you not done any programming at all? How can you not know what a type is? At least on an intuitive basis everybody who has done the tiniest bit of programming should know about it.

>The dimension and size?
That is a small part of it, but not the most essential quality.

>And the basis should also have an intuitive (obvious) representation as an array.
Please, tell me an obvious representation of a basis for a Lebesgue space...

>I really don't see why you guys have a problem with this.
You seem to not understand extremely basic concenpts like a "type", of course then you can not understand the issue.

>> No.11835319

>>11835248
>type
google what is (p,q)-tensor
>And the basis should also have an intuitive (obvious) representation as an array
almost never does a space come with a preferred system of coordinates

>> No.11835325

>>11835181
ok, but if I have a specific input and a specific transformation, the tensor will always be an array, right?

>> No.11835330

>>11835197
give me a topology as array

>> No.11835333

>>11835330
Which topology? I will give you the array that represents it.

>> No.11835336

>>11835325
a tensor is represented by an array if bases of domain and codomain have been chosen. if there are no spaces, bases etc. (e.g. if you're just literally coding arrays as a way of storing numbers systematically without any relation to geometry), then you're not talking about tensors. maybe CSfags call it tensors, but it's simply wrong.

>> No.11835339

>>11835330
If you can represent a space as an array, which you obviously can, then you can also represent the topology by an array.

>> No.11835341

>>11835333
I want a donut cow plz

>> No.11835345
File: 25 KB, 500x500, B429C9DC-95B1-43F4-B11D-6856C42EC980.jpg [View same] [iqdb] [saucenao] [google]
11835345

>>11835336
I think I get it now, thanks!

>> No.11835346

>>11831757
What's the deal with the fucking dog shit kerning?

>> No.11835352

>>11835316
I obviously know what a type in programming type is, but I thought we were talking about mathematical objects and not programming?

>> No.11835386

>>11835346
What is kerning? Define it in C#. Is it some sort of array?

>> No.11835401

>>11835352
>I thought we were talking about mathematical objects and not programming?
Types encode the "meta" properties of an object. Both in a programming language and in mathematics. The programming concept originates in mathematics.

>I obviously know what a type in programming type
Then you should know what the difference between a linear map and an array is.
A linear map is a function, an array is data stored in a certain way.

>> No.11835419

>>11835336
Okay but literally any quantity, to be represented in a computer, must implicitly be represented with the assumption of its field and vector space as well as magnitudes and units, for example a 3-dimensional velocity can only be encoded in a computer with the assumption of domain and codomain. And a 3-dimensional velocity is just an array, in terms of how it’s actually encoded, so a tensor is an array

>> No.11835459

>>11835419
>must implicitly be represented with the assumption of its field and vector space
No. Of course not.
The type is always explicitly associated with the data, that is the only way a computer would know what to do with it.

>for example a 3-dimensional velocity can only be encoded in a computer with the assumption of domain and codomain
But the domain (which is part of its type) has to be *explicitly* stored.

>And a 3-dimensional velocity is just an array, in terms of how it’s actually encoded
No. They have cleary different types and types are stored, well, at least the compiler uses the types to create a correct program where each object is associated with its correct type.

>> No.11835486

>>11835419
Youre a moron.

>> No.11835487

>>11835459
So, a tensor is just a specific type of array?

>> No.11835506

>>11835419
for the hundredth time, yes, a tensor can be represented by an array. and for the hundredth time, no, that doesn't mean a tensor IS an array.

>> No.11835514

>>11835487
>So, a tensor is just a specific type of array?
What? No! How can you even read that from what I said?

They are fundamentally different. Like a function and a list in a computer programm are fundamentally different.

>> No.11835528

>>11835487
jfl

>> No.11836722

>>11835487
Specifically it is an array of arrays.

>> No.11836739
File: 90 KB, 800x582, concept-programmer-hacker-cyberspace-man’s-face-programming-code-background-programmer-144002238.jpg [View same] [iqdb] [saucenao] [google]
11836739

>>11831690
Tensors are gay.

LIKE YOU!!!!!!!!!!

>> No.11836741

It's literally just an array of numbers. That's it.
>but it could be an array of arrays
Those are implemented in ram as just an array of numbers.
>but I multiplied my array by a matrix, doesn't that make it special?
No, it's just a fucking array. The way you use your array doesn't change what it is.

>> No.11836767

>>11836741
Read the thread before posting, moron.

>> No.11836789
File: 14 KB, 236x274, 1592602381095.jpg [View same] [iqdb] [saucenao] [google]
11836789

>>11832366
>multilinear algebra
do people actually do this?

>> No.11836790

>>11836741
brainlet

>> No.11836801

>>11836789
Tensors are literally the thing that transforms "multilinear algebra" into plain old linear algebra. That's the whole point.
When you have a multilinear function
f(x_1, ..., x_n) : V^n -> W for some vector space W, i.e. linear in each argument, you can uniquely characterize it as a linear function f: V tensor^n V -> W, where now the domain is a vector space instead of a set theoretic thingy.

>> No.11836818
File: 9 KB, 367x124, tensor.png [View same] [iqdb] [saucenao] [google]
11836818

i dunno guys, looks like an array of numbers to me!

>> No.11838332

>>11834012
wait sorry, what's a vector?

>> No.11838394

>>11838332
V is naturally isomorphic to {maps V* -> F}. At least if it's finite dimensional.

>> No.11838410

>>11836801
Can you expand that into some sort of array?

>> No.11838508

>>11835107
This gif saves the thread

>> No.11838513

>>11835152
I was mocking the people who say mathematical structures are just arrays of numbers. If that were the case, you would be able to tell from my array of numbers that the object is a certain polynomial. Obviously you couldn't, because polynomials aren't just arrays of numbers, nor are vectors and tensors.

>> No.11838675

>>11838513
>Obviously you couldn't
But my answer was still 100% correct.

>> No.11838743

>>11831757
Imagine have x y z for positions as values. Fucking shit dev make it an array of arrays.

>> No.11838746

>>11834984
With an array of numbers

>> No.11838814

>>11831690
A Tnesor is a multilinear mapping.
Sometimes (more often than not) it CAN be represented in "multidimensional matrix form" if a basis is known, finite or at least countable.
Then you can put it into a multi layered array in for example C#

>> No.11838846

>>11835160
>my
no its not. fuck off, control freak.