This commit is contained in:
NoryiE
2025-02-16 14:12:49 +00:00
parent c6a89e5b35
commit e0aeb9b06e
2737 changed files with 5220 additions and 1039045 deletions

View File

@@ -1,9 +0,0 @@
iStochasticityAssumptions [sm_List] :=
SquareMatrixQ[sm] && Element[DeleteDuplicates[Flatten[sm]], Reals] &&
Apply [And, Map[#>=0&, sm, {2}], {0, 1}] && Apply [And, Thread[Total[sm, {2}] == 1]]
iStochasticityAssumptions[sm_SparseArray] := SquareMatrixQ[sm] &&
Apply[And, Thread[ DeleteDuplicates [ sm["NonzeroValues"] ~Join~ {sm["Background"]} ] >= 0 ] ] &&
Apply[And, Thread [Total [sm, {2}] = 1]]
(* https://github.com/WolframResearch/vscode-wolfram/blob/master/docs/highlighting.png *)