Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

NewLinearAlgebraPaclet

Guides

  • Matrices

Symbols

  • AntidiagonallySymmetrizableMatrixQ
  • AntidiagonalMatrix
  • AntidiagonalMatrixQ
  • Antidiagonal
  • AntidiagonalTranspose
  • DesymmetrizedMatrix
  • DeTriangularizableMatrixQ
  • DeTriangularizeMatrix
  • HessianMatrix
  • JacobianMatrix
  • LeftArrowMatrix
  • LowerArrowMatrix
  • LowerRightTriangularize
  • LowerRightTriangularMatrixQ
  • MatrixSymmetrizability
  • PyramidMatrix
  • ReflectedDiagonalMatrix
  • RightArrowMatrix
  • TopArrowMatrix
  • UlamMatrix
  • UpperLeftTriangularize
  • UpperLeftTriangularMatrixQ
PeterBurbery`NewLinearAlgebraPaclet`
PyramidMatrix
​
PyramidMatrix
[n]
makes a pyramid matrix of size
n
by
n
.
​
Details and Options

Examples  
(2)
Basic Examples  
(1)
Here are some pyramid matrices:
In[1]:=
MatrixForm/@
PyramidMatrix
/@Range[7]
Out[1]=
(
1
),
1
1
1
1
,
1
1
1
1
2
1
1
1
1
,
1
1
1
1
1
2
2
1
1
2
2
1
1
1
1
1
,
1
1
1
1
1
1
2
2
2
1
1
2
3
2
1
1
2
2
2
1
1
1
1
1
1
,
1
1
1
1
1
1
1
2
2
2
2
1
1
2
3
3
2
1
1
2
3
3
2
1
1
2
2
2
2
1
1
1
1
1
1
1
,
1
1
1
1
1
1
1
1
2
2
2
2
2
1
1
2
3
3
3
2
1
1
2
3
4
3
2
1
1
2
3
3
3
2
1
1
2
2
2
2
2
1
1
1
1
1
1
1
1

Here is a big pyramid matrix with an even number of elements. Notice the 4 12s in the middle:
In[2]:=
PyramidMatrix
[24]//MatrixForm
Out[2]//MatrixForm=
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
1
2
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
2
1
1
2
3
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
3
2
1
1
2
3
4
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
4
3
2
1
1
2
3
4
5
6
6
6
6
6
6
6
6
6
6
6
6
6
6
5
4
3
2
1
1
2
3
4
5
6
7
7
7
7
7
7
7
7
7
7
7
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
8
8
8
8
8
8
8
8
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
9
9
9
9
9
9
9
9
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
9
10
10
10
10
10
10
9
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
9
10
11
11
11
11
10
9
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
9
10
11
12
12
11
10
9
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
9
10
11
12
12
11
10
9
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
9
10
11
11
11
11
10
9
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
9
10
10
10
10
10
10
9
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
9
9
9
9
9
9
9
9
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
8
8
8
8
8
8
8
8
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
7
7
7
7
7
7
7
7
7
7
7
6
5
4
3
2
1
1
2
3
4
5
6
6
6
6
6
6
6
6
6
6
6
6
6
6
5
4
3
2
1
1
2
3
4
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
4
3
2
1
1
2
3
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
3
2
1
1
2
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
2
1
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Here is a big pyramid matrix with an odd number of elements. Notice the 13 in the middle of the ring of 12s:
In[3]:=
PyramidMatrix
[25]//MatrixForm
Out[3]//MatrixForm=
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
1
2
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
2
1
1
2
3
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
3
2
1
1
2
3
4
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
4
3
2
1
1
2
3
4
5
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
5
4
3
2
1
1
2
3
4
5
6
7
7
7
7
7
7
7
7
7
7
7
7
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
8
8
8
8
8
8
8
8
8
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
9
9
9
9
9
9
9
9
9
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
9
10
10
10
10
10
10
10
9
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
9
10
11
11
11
11
11
10
9
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
9
10
11
12
12
12
11
10
9
8
7
6
5
4
3
2
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2
1
1
2
2
2
2
2
2
2
1
1
1
1
1
1
1
1
1
1
Format the matrix with a frame too.:
In[6]:=
Grid
PyramidMatrix
[9],FrameTrue
Out[6]=
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
1
1
2
3
3
3
3
3
2
1
1
2
3
4
4
4
3
2
1
1
2
3
4
5
4
3
2
1
1
2
3
4
4
4
3
2
1
1
2
3
3
3
3
3
2
1
1
2
2
2
2
2
2
2
1
1
1
1
1
1
1
1
1
1
Use different frame options. Put a grid around all elements:
In[7]:=
Grid
PyramidMatrix
[9],FrameAll
Out[7]=
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
1
1
2
3
3
3
3
3
2
1
1
2
3
4
4
4
3
2
1
1
2
3
4
5
4
3
2
1
1
2
3
4
4
4
3
2
1
1
2
3
3
3
3
3
2
1
1
2
2
2
2
2
2
2
1
1
1
1
1
1
1
1
1
1
Make a table instead:
In[8]:=
TableForm
PyramidMatrix
[9]
Out[8]//TableForm=
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
1
1
2
3
3
3
3
3
2
1
1
2
3
4
4
4
3
2
1
1
2
3
4
5
4
3
2
1
1
2
3
4
4
4
3
2
1
1
2
3
3
3
3
3
2
1
1
2
2
2
2
2
2
2
1
1
1
1
1
1
1
1
1
1
Make a table view instead:
In[9]:=
TableView
PyramidMatrix
[9]
Out[9]=
Make an array plot:
In[10]:=
ArrayPlot
PyramidMatrix
[9]
Out[10]=
Make an array plot with different colors:
Make an image.
There might be a way to make a 3D image somehow.

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com