SlideShare a Scribd company logo
J symbol
“ ., ” (comma-dot)
Group 6 Hikaru Sugiura
Outline
• Monadic Case
• Over 3-rank Array, Matrix, Vector, Scalar
• Apply to empty list
• Conclusion: Monadic
• Dyadic Case
• Matrix, Vector
• Exception: special case
• Error case
• Conclusion : Dyadic
,. : Monadic Case
Items
Matrix
Ravel Items
Definition: y ravels the items of y.
18 19 20
21 22 23
24 25 26
Apply to rank-3 array
Ravel Items returns
the nx(m*o) Matrix for the nxmxo array.
0 1 2 3 4 5 6 7 8
9 10 11 12 13 14 15 16 17
18 19 20 21 22 23 24 25 26
9 10 11
12 13 14
15 16 17
0 1 2
3 4 5
6 7 8
3rd
2nd
1st
m*o
m
o
n
n
,.
i.3 3 3
Matrix
Apply to matrix
Ravel Items returns
the Same Matrix for the matrix.
0 1 2
3 4 5
6 7 8
0 1 2
3 4 5
6 7 8
,.
n
m
1st
2ndi.3 3
0 1 2
Apply to vector
Ravel Items returns
a nx1 Matrix for the n vector.
Shape : 3 1
0
1
2
,.
n
1st
i.3
Apply to scaler
Ravel Items returns
a 1x1 Matrix for the scaler.
33,.
No axis!
Shape : 1 1
Ravel Items returns
the Matrix for a scaler, vector, matrix
and any size array.
i.e.
Arg:Rank
Result
Shape Rank
Scalar : 0 1 1 2
n
Vector : 1
n 1 2
nxm
Matrix : 2
n m 2
nxmxo
Array: 3
n m*o 2
Matrix!
}
Apply to Empty list
Result : ,. i. 0 0 0 → (empty)
Ravel Items returns
the 0x0 Matrix for the empty list.
Rank : $$ ,. i. 0 0 0 → 2
Shape : $ ,. i. 0 0 0 →  0 0
Conclusion:Monadic
Ravel Items returns
the Matrix for the any list
Arg:Rank
Result
Shape Rank
Scalar : 0 1 1 2
n
Vector : 1
n 1 2
nxm
Matrix : 2
n m 2
nxmxo
Array: 3
n m*o 2
nxmxo…xz n m*o*…*z 2
※ n,m,…,z ≧ 0
Effective to over
4-rank Array.
Make matrix and
possible to process
with other one.
,. : Dyadic case
Stitch
Definition: x ,. y the items of x and stitched to the
corresponding items of y.
X Y,. X Y
One Item
Example
0 1 2
3 4 5
6 7 8
0 1 2
3 4 5
6 7 8
,.
0 1 2 0 1 2
3 4 5 3 4 5
6 7 8 6 7 8
3x6 Matrixi.3 3 i.3 3
0 1 2 3
4 5 6 7
8 9 10 11
0 1 2
3 4 5
6 7 8
,.
0 1 2 3 0 1 2
4 5 6 7 3 4 5
8 9 10 11 6 7 8
i.3 4 i.3 3
• Matrices
3x7 Matrix
Example
0 1 2
3 4 5
6 7 8
0 1 2,.
i.3 3 i.3
• Matrix and Vector
0 1 2 0
3 4 5 1
6 7 8 2
3x4 Matrix
0 1 2 ,.
0 0
1 1
2 2
• Vectors 2x3 Matrix
0 1 2
i.3
0 1 2 0 1 2not!
i.3
Example
,.1 2
• Scalars
1 2
Vector
• Scalar and Vector
0 1 2
i.3
3,.
0 3
1 3
2 3
Matrix
Repeating
to Fit!
Error Case
• Length Error
0 1 2
3 4 5
6 7 8
0 1
3 4
,.
0
1
2
,.
Matrix and Matrix
The lengths of Y-axis
Must be matched.
Vector and Vector
The length
Must be matched.
0
1
2
3
※Scaler automatically match to other item by repeating.
Conclusion:Dyadic
Stitch returns
Joint-Item made from (left) and (right).
In over 1-rank items, The lengths must be matched.
X Y,. X Y
One Item

More Related Content

PPTX
WCS Specialist Maths An Introduction to Matrices PowerPoint
PDF
Exam ii(practice)
PPT
PPT
Matrices
PPT
4.6 notes
PDF
Lesson 8 Nov 27 09
PPTX
Functions lesson
PPTX
Interpolation
WCS Specialist Maths An Introduction to Matrices PowerPoint
Exam ii(practice)
Matrices
4.6 notes
Lesson 8 Nov 27 09
Functions lesson
Interpolation

What's hot (12)

PDF
Lesson 2 Feb 11 2010
PPTX
MATLAB - Aplication of Arrays and Matrices in Electrical Systems
PPT
Writing Function Rules - Calculator
PPTX
Rabbit challenge 1_math
PPTX
PDF
3.2.interpolation lagrange
PPTX
MATRICES
PDF
Assignment 1
PPTX
PPTX
presentation on matrix
PPTX
Bba i-bm-u-2- matrix -
Lesson 2 Feb 11 2010
MATLAB - Aplication of Arrays and Matrices in Electrical Systems
Writing Function Rules - Calculator
Rabbit challenge 1_math
3.2.interpolation lagrange
MATRICES
Assignment 1
presentation on matrix
Bba i-bm-u-2- matrix -
Ad

Similar to Introducing J-Language Function: ",." (Commma-dot) (20)

PDF
Rank awarealgs small11
PDF
Rank awarealgs small11
PPTX
Linear Algebra and Matlab tutorial
PDF
Multimodal pattern matching algorithms and applications
PDF
Linear Algebra for AI & ML
PDF
Some Multivariate Methods Used by Ecologists
PPT
Submodularity slides
PDF
cvpr2009 tutorial: kernel methods in computer vision: part II: Statistics and...
PPTX
sparse matrices in tress
PDF
Matlab/R Dictionary
PDF
Dynamic time wrapping (dtw), vector quantization(vq), linear predictive codin...
PPS
PPTX
Matlab level 1.pptx
PPTX
Introduction to matlab lecture 2 of 4
PDF
Csr2011 june18 11_00_tiskin
PPTX
Mat lab.pptx
PDF
Lecture 6
PDF
Foundations of Machine Learning - Module 1 (LINEAR ALGEBRA )
PPT
Matlab Overviiew 2
PPTX
Introduction to Matlab and application.pptx
Rank awarealgs small11
Rank awarealgs small11
Linear Algebra and Matlab tutorial
Multimodal pattern matching algorithms and applications
Linear Algebra for AI & ML
Some Multivariate Methods Used by Ecologists
Submodularity slides
cvpr2009 tutorial: kernel methods in computer vision: part II: Statistics and...
sparse matrices in tress
Matlab/R Dictionary
Dynamic time wrapping (dtw), vector quantization(vq), linear predictive codin...
Matlab level 1.pptx
Introduction to matlab lecture 2 of 4
Csr2011 june18 11_00_tiskin
Mat lab.pptx
Lecture 6
Foundations of Machine Learning - Module 1 (LINEAR ALGEBRA )
Matlab Overviiew 2
Introduction to Matlab and application.pptx
Ad

Recently uploaded (20)

PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
PPTX
Artificial Intelligence
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
737-MAX_SRG.pdf student reference guides
PDF
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
PPTX
Nature of X-rays, X- Ray Equipment, Fluoroscopy
PPTX
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
PDF
August 2025 - Top 10 Read Articles in Network Security & Its Applications
PPT
Total quality management ppt for engineering students
PPTX
Fundamentals of Mechanical Engineering.pptx
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PPTX
Current and future trends in Computer Vision.pptx
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
R24 SURVEYING LAB MANUAL for civil enggi
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
Artificial Intelligence
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
Automation-in-Manufacturing-Chapter-Introduction.pdf
737-MAX_SRG.pdf student reference guides
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
Nature of X-rays, X- Ray Equipment, Fluoroscopy
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
distributed database system" (DDBS) is often used to refer to both the distri...
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
August 2025 - Top 10 Read Articles in Network Security & Its Applications
Total quality management ppt for engineering students
Fundamentals of Mechanical Engineering.pptx
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
Current and future trends in Computer Vision.pptx
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf

Introducing J-Language Function: ",." (Commma-dot)

  • 1. J symbol “ ., ” (comma-dot) Group 6 Hikaru Sugiura
  • 2. Outline • Monadic Case • Over 3-rank Array, Matrix, Vector, Scalar • Apply to empty list • Conclusion: Monadic • Dyadic Case • Matrix, Vector • Exception: special case • Error case • Conclusion : Dyadic
  • 3. ,. : Monadic Case Items Matrix Ravel Items Definition: y ravels the items of y.
  • 4. 18 19 20 21 22 23 24 25 26 Apply to rank-3 array Ravel Items returns the nx(m*o) Matrix for the nxmxo array. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 9 10 11 12 13 14 15 16 17 0 1 2 3 4 5 6 7 8 3rd 2nd 1st m*o m o n n ,. i.3 3 3 Matrix
  • 5. Apply to matrix Ravel Items returns the Same Matrix for the matrix. 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 ,. n m 1st 2ndi.3 3
  • 6. 0 1 2 Apply to vector Ravel Items returns a nx1 Matrix for the n vector. Shape : 3 1 0 1 2 ,. n 1st i.3
  • 7. Apply to scaler Ravel Items returns a 1x1 Matrix for the scaler. 33,. No axis! Shape : 1 1
  • 8. Ravel Items returns the Matrix for a scaler, vector, matrix and any size array. i.e. Arg:Rank Result Shape Rank Scalar : 0 1 1 2 n Vector : 1 n 1 2 nxm Matrix : 2 n m 2 nxmxo Array: 3 n m*o 2 Matrix! }
  • 9. Apply to Empty list Result : ,. i. 0 0 0 → (empty) Ravel Items returns the 0x0 Matrix for the empty list. Rank : $$ ,. i. 0 0 0 → 2 Shape : $ ,. i. 0 0 0 →  0 0
  • 10. Conclusion:Monadic Ravel Items returns the Matrix for the any list Arg:Rank Result Shape Rank Scalar : 0 1 1 2 n Vector : 1 n 1 2 nxm Matrix : 2 n m 2 nxmxo Array: 3 n m*o 2 nxmxo…xz n m*o*…*z 2 ※ n,m,…,z ≧ 0 Effective to over 4-rank Array. Make matrix and possible to process with other one.
  • 11. ,. : Dyadic case Stitch Definition: x ,. y the items of x and stitched to the corresponding items of y. X Y,. X Y One Item
  • 12. Example 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 ,. 0 1 2 0 1 2 3 4 5 3 4 5 6 7 8 6 7 8 3x6 Matrixi.3 3 i.3 3 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 ,. 0 1 2 3 0 1 2 4 5 6 7 3 4 5 8 9 10 11 6 7 8 i.3 4 i.3 3 • Matrices 3x7 Matrix
  • 13. Example 0 1 2 3 4 5 6 7 8 0 1 2,. i.3 3 i.3 • Matrix and Vector 0 1 2 0 3 4 5 1 6 7 8 2 3x4 Matrix 0 1 2 ,. 0 0 1 1 2 2 • Vectors 2x3 Matrix 0 1 2 i.3 0 1 2 0 1 2not! i.3
  • 14. Example ,.1 2 • Scalars 1 2 Vector • Scalar and Vector 0 1 2 i.3 3,. 0 3 1 3 2 3 Matrix Repeating to Fit!
  • 15. Error Case • Length Error 0 1 2 3 4 5 6 7 8 0 1 3 4 ,. 0 1 2 ,. Matrix and Matrix The lengths of Y-axis Must be matched. Vector and Vector The length Must be matched. 0 1 2 3 ※Scaler automatically match to other item by repeating.
  • 16. Conclusion:Dyadic Stitch returns Joint-Item made from (left) and (right). In over 1-rank items, The lengths must be matched. X Y,. X Y One Item