Skip to content

Commit 3edfde2

Browse files
committed
Split long lines, isort dd indentation, ...
apply -> eval
1 parent 7d580d1 commit 3edfde2

File tree

6 files changed

+254
-311
lines changed

6 files changed

+254
-311
lines changed

mathics/builtin/matrices/constrmatrix.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313

1414
class DiagonalMatrix(Builtin):
1515
"""
16-
<url>:WMA link:https://reference.wolfram.com/language/ref/DiagonalMatrix.html</url>
16+
<url>:WMA link:
17+
https://reference.wolfram.com/language/ref/DiagonalMatrix.html</url>
1718
1819
<dl>
1920
<dt>'DiagonalMatrix[$list$]'
20-
<dd>gives a matrix with the values in $list$ on its diagonal and zeroes elsewhere.
21+
<dd>gives a matrix with the values in $list$ on its diagonal and \
22+
zeroes elsewhere.
2123
</dl>
2224
2325
>> DiagonalMatrix[{1, 2, 3}]
@@ -46,7 +48,8 @@ def apply(self, list, evaluation):
4648

4749
class IdentityMatrix(Builtin):
4850
"""
49-
<url>:WMA link:https://reference.wolfram.com/language/ref/IdentityMatrix.html</url>
51+
<url>:WMA link:
52+
https://reference.wolfram.com/language/ref/IdentityMatrix.html</url>
5053
5154
<dl>
5255
<dt>'IdentityMatrix[$n$]'

mathics/builtin/matrices/partmatrix.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313

1414
class Diagonal(Builtin):
1515
"""
16-
<url>:WMA link:https://reference.wolfram.com/language/ref/Diagonal.html</url>
16+
<url>:WMA link:
17+
https://reference.wolfram.com/language/ref/Diagonal.html</url>
1718
1819
<dl>
1920
<dt>'Diagonal[$m$]'
2021
<dd>gives a list with the values in the diagonal of the matrix $m$.
22+
2123
<dt>'Diagonal[$m$, $k$]'
22-
<dd>gives a list with the values in the $k$ diagonal of the matrix $m$.
24+
<dd>gives a list with the values in the $k$ diagonal of the \
25+
matrix $m$.
2326
</dl>
2427
2528
>> Diagonal[{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}]
@@ -67,7 +70,8 @@ class MatrixQ(Builtin):
6770
<dd>gives 'True' if $m$ is a list of equal-length lists.
6871
6972
<dt>'MatrixQ[$m$, $f$]'
70-
<dd>gives 'True' only if '$f$[$x$]' returns 'True' for when applied to element $x$ of the matrix $m$.
73+
<dd>gives 'True' only if '$f$[$x$]' returns 'True' for when applied to \
74+
element $x$ of the matrix $m$.
7175
</dl>
7276
7377
>> MatrixQ[{{1, 3}, {4.0, 3/2}}, NumberQ]

0 commit comments

Comments
 (0)