What's the best syntax for defining a matrix/tensor via its indices?












0












$begingroup$


This is a question about math notation. The context is, I'm trying to correctly define a problem of scheduling the flow through a set of devices, $D = {d_1, d_2, ... d_n}$, over a finite discrete future planning horizon $T$ = $(1,2,3dots,60)$. The schedule of all devices over the planning horizon can be described by a real valued matrix, $Q$, with $|D|$ rows and $|T|$ columns. To define $Q$ I could state just that. But given a definition of $D$ and $T$ which form the "index sets", or just "indices" of matrix, to define $Q$ could/should I just say "Let $Q = D times T rightarrow mathbb{R}$", or something else that is more succinct and direct than "Let $Q$ be a matrix with $|D|$ rows and $|T|$ columns"?










share|cite|improve this question











$endgroup$












  • $begingroup$
    This depends a bit on the intended audience. Sometimes having a super technical definition isn't as useful as a more clear but less precise one. Perhaps the shortest commonly used notation would be $Qinmathbb{R}^{|D|times|T|}$ (or $Qinmathbb{R}^{mtimes n}$ if you defined $m$ to be the size of $T$).
    $endgroup$
    – tch
    Jan 16 at 4:06


















0












$begingroup$


This is a question about math notation. The context is, I'm trying to correctly define a problem of scheduling the flow through a set of devices, $D = {d_1, d_2, ... d_n}$, over a finite discrete future planning horizon $T$ = $(1,2,3dots,60)$. The schedule of all devices over the planning horizon can be described by a real valued matrix, $Q$, with $|D|$ rows and $|T|$ columns. To define $Q$ I could state just that. But given a definition of $D$ and $T$ which form the "index sets", or just "indices" of matrix, to define $Q$ could/should I just say "Let $Q = D times T rightarrow mathbb{R}$", or something else that is more succinct and direct than "Let $Q$ be a matrix with $|D|$ rows and $|T|$ columns"?










share|cite|improve this question











$endgroup$












  • $begingroup$
    This depends a bit on the intended audience. Sometimes having a super technical definition isn't as useful as a more clear but less precise one. Perhaps the shortest commonly used notation would be $Qinmathbb{R}^{|D|times|T|}$ (or $Qinmathbb{R}^{mtimes n}$ if you defined $m$ to be the size of $T$).
    $endgroup$
    – tch
    Jan 16 at 4:06
















0












0








0


1



$begingroup$


This is a question about math notation. The context is, I'm trying to correctly define a problem of scheduling the flow through a set of devices, $D = {d_1, d_2, ... d_n}$, over a finite discrete future planning horizon $T$ = $(1,2,3dots,60)$. The schedule of all devices over the planning horizon can be described by a real valued matrix, $Q$, with $|D|$ rows and $|T|$ columns. To define $Q$ I could state just that. But given a definition of $D$ and $T$ which form the "index sets", or just "indices" of matrix, to define $Q$ could/should I just say "Let $Q = D times T rightarrow mathbb{R}$", or something else that is more succinct and direct than "Let $Q$ be a matrix with $|D|$ rows and $|T|$ columns"?










share|cite|improve this question











$endgroup$




This is a question about math notation. The context is, I'm trying to correctly define a problem of scheduling the flow through a set of devices, $D = {d_1, d_2, ... d_n}$, over a finite discrete future planning horizon $T$ = $(1,2,3dots,60)$. The schedule of all devices over the planning horizon can be described by a real valued matrix, $Q$, with $|D|$ rows and $|T|$ columns. To define $Q$ I could state just that. But given a definition of $D$ and $T$ which form the "index sets", or just "indices" of matrix, to define $Q$ could/should I just say "Let $Q = D times T rightarrow mathbb{R}$", or something else that is more succinct and direct than "Let $Q$ be a matrix with $|D|$ rows and $|T|$ columns"?







matrices notation tensors






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 16 at 3:45







spinkus

















asked Jan 28 '18 at 7:11









spinkusspinkus

1257




1257












  • $begingroup$
    This depends a bit on the intended audience. Sometimes having a super technical definition isn't as useful as a more clear but less precise one. Perhaps the shortest commonly used notation would be $Qinmathbb{R}^{|D|times|T|}$ (or $Qinmathbb{R}^{mtimes n}$ if you defined $m$ to be the size of $T$).
    $endgroup$
    – tch
    Jan 16 at 4:06




















  • $begingroup$
    This depends a bit on the intended audience. Sometimes having a super technical definition isn't as useful as a more clear but less precise one. Perhaps the shortest commonly used notation would be $Qinmathbb{R}^{|D|times|T|}$ (or $Qinmathbb{R}^{mtimes n}$ if you defined $m$ to be the size of $T$).
    $endgroup$
    – tch
    Jan 16 at 4:06


















$begingroup$
This depends a bit on the intended audience. Sometimes having a super technical definition isn't as useful as a more clear but less precise one. Perhaps the shortest commonly used notation would be $Qinmathbb{R}^{|D|times|T|}$ (or $Qinmathbb{R}^{mtimes n}$ if you defined $m$ to be the size of $T$).
$endgroup$
– tch
Jan 16 at 4:06






$begingroup$
This depends a bit on the intended audience. Sometimes having a super technical definition isn't as useful as a more clear but less precise one. Perhaps the shortest commonly used notation would be $Qinmathbb{R}^{|D|times|T|}$ (or $Qinmathbb{R}^{mtimes n}$ if you defined $m$ to be the size of $T$).
$endgroup$
– tch
Jan 16 at 4:06












1 Answer
1






active

oldest

votes


















0












$begingroup$

Is there any advantage to representing your flows as a matrix ? Will you be adding sets of flow values from different scenarios, for example ?



If not, you might as well just define a function $f:D times T rightarrow mathbb{R}$ where $f(d_i, t)$ is the flow through device $d_i$ at time $t$. And you might want to think about whether your domain is really the whole of $mathbb{R}$. For example, can flow values be negative ?






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Hmm interesting idea. I do need to define the matrix though as I need to define constraints on the joint flows. Adding is another potential use case. Yes the flows can be negative some flows in are related to flows out. I now know the class of problem is usually called a "network flow problem" popular in traffic routing for instance, except that it is less common to include the time domain, as above.
    $endgroup$
    – spinkus
    Jan 16 at 21:46











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2624608%2fwhats-the-best-syntax-for-defining-a-matrix-tensor-via-its-indices%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0












$begingroup$

Is there any advantage to representing your flows as a matrix ? Will you be adding sets of flow values from different scenarios, for example ?



If not, you might as well just define a function $f:D times T rightarrow mathbb{R}$ where $f(d_i, t)$ is the flow through device $d_i$ at time $t$. And you might want to think about whether your domain is really the whole of $mathbb{R}$. For example, can flow values be negative ?






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Hmm interesting idea. I do need to define the matrix though as I need to define constraints on the joint flows. Adding is another potential use case. Yes the flows can be negative some flows in are related to flows out. I now know the class of problem is usually called a "network flow problem" popular in traffic routing for instance, except that it is less common to include the time domain, as above.
    $endgroup$
    – spinkus
    Jan 16 at 21:46
















0












$begingroup$

Is there any advantage to representing your flows as a matrix ? Will you be adding sets of flow values from different scenarios, for example ?



If not, you might as well just define a function $f:D times T rightarrow mathbb{R}$ where $f(d_i, t)$ is the flow through device $d_i$ at time $t$. And you might want to think about whether your domain is really the whole of $mathbb{R}$. For example, can flow values be negative ?






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Hmm interesting idea. I do need to define the matrix though as I need to define constraints on the joint flows. Adding is another potential use case. Yes the flows can be negative some flows in are related to flows out. I now know the class of problem is usually called a "network flow problem" popular in traffic routing for instance, except that it is less common to include the time domain, as above.
    $endgroup$
    – spinkus
    Jan 16 at 21:46














0












0








0





$begingroup$

Is there any advantage to representing your flows as a matrix ? Will you be adding sets of flow values from different scenarios, for example ?



If not, you might as well just define a function $f:D times T rightarrow mathbb{R}$ where $f(d_i, t)$ is the flow through device $d_i$ at time $t$. And you might want to think about whether your domain is really the whole of $mathbb{R}$. For example, can flow values be negative ?






share|cite|improve this answer









$endgroup$



Is there any advantage to representing your flows as a matrix ? Will you be adding sets of flow values from different scenarios, for example ?



If not, you might as well just define a function $f:D times T rightarrow mathbb{R}$ where $f(d_i, t)$ is the flow through device $d_i$ at time $t$. And you might want to think about whether your domain is really the whole of $mathbb{R}$. For example, can flow values be negative ?







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Jan 16 at 12:20









gandalf61gandalf61

8,771725




8,771725












  • $begingroup$
    Hmm interesting idea. I do need to define the matrix though as I need to define constraints on the joint flows. Adding is another potential use case. Yes the flows can be negative some flows in are related to flows out. I now know the class of problem is usually called a "network flow problem" popular in traffic routing for instance, except that it is less common to include the time domain, as above.
    $endgroup$
    – spinkus
    Jan 16 at 21:46


















  • $begingroup$
    Hmm interesting idea. I do need to define the matrix though as I need to define constraints on the joint flows. Adding is another potential use case. Yes the flows can be negative some flows in are related to flows out. I now know the class of problem is usually called a "network flow problem" popular in traffic routing for instance, except that it is less common to include the time domain, as above.
    $endgroup$
    – spinkus
    Jan 16 at 21:46
















$begingroup$
Hmm interesting idea. I do need to define the matrix though as I need to define constraints on the joint flows. Adding is another potential use case. Yes the flows can be negative some flows in are related to flows out. I now know the class of problem is usually called a "network flow problem" popular in traffic routing for instance, except that it is less common to include the time domain, as above.
$endgroup$
– spinkus
Jan 16 at 21:46




$begingroup$
Hmm interesting idea. I do need to define the matrix though as I need to define constraints on the joint flows. Adding is another potential use case. Yes the flows can be negative some flows in are related to flows out. I now know the class of problem is usually called a "network flow problem" popular in traffic routing for instance, except that it is less common to include the time domain, as above.
$endgroup$
– spinkus
Jan 16 at 21:46


















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2624608%2fwhats-the-best-syntax-for-defining-a-matrix-tensor-via-its-indices%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

ts Property 'filter' does not exist on type '{}'

mat-slide-toggle shouldn't change it's state when I click cancel in confirmation window