The library documents itself · Pattern matching
stzMatrex
58 own methods · 0 forms written with extensions, listed under their method
the source: base/regex/stzMatrex.ring(opens in a new tab) · All classes · The area reference: Pattern matching
Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean
Examples: 4 come from the library's tests; 17 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzMatrex("{@!property(symmetric)}"). 37 methods have none yet. Examples run on 2026-10-03 20:34 inside the library at commit 0e72e2e2c.
Method
Explanation, as the source carries it
init
initializationno extension
NormalizePattern
initializationno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.NormalizePattern("an")
#--> {an}composed from the signature, run for this pageParsePattern
pattern parsingno extension
SplitByOperator
pattern parsingno extension
ParseAlternation
pattern parsingno extension
ParseConjunction
pattern parsingno extension
ParseSingleToken
pattern parsingno extension
ParseConstraints
pattern parsingno extension
matching logic 27 examples run
oMx = new stzMatrex("{size(1x1)}")
aMatrix = [[42]]
? oMx.Match(aMatrix)
#--> 1library testno extensionMatchTokens
matching logicno extension
MatchSingleToken
matching logicno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.MatchSingleToken([ "an", "a" ], [ "an", "a" ])
#--> 0composed from the signature, run for this pageCheckSize
(no comment in the source: the name reads as a sentence) check sizein the section checking methodsno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.CheckSize([ "an", "a" ], [ "an", "a" ])
#--> 1composed from the signature, run for this pageCheckShape
(no comment in the source: the name reads as a sentence) check shapein the section checking methodsno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.CheckShape("an", [ "an", "a" ])
#--> 0composed from the signature, run for this pageCheckElements
(no comment in the source: the name reads as a sentence) check elementsin the section checking methodsno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.CheckElements([ "an", "a" ], [ "an", "a" ])
#--> 1composed from the signature, run for this pageCheckRows
(no comment in the source: the name reads as a sentence) check rowsin the section checking methodsno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.CheckRows([ "an", "a" ], [ "an", "a" ])
#--> 1composed from the signature, run for this pageCheckCols
(no comment in the source: the name reads as a sentence) check colsin the section checking methodsno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.CheckCols([ "an", "a" ], [ "an", "a" ])
#--> 1composed from the signature, run for this pageCheckDiagonal
(no comment in the source: the name reads as a sentence) check diagonalin the section checking methodsno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.CheckDiagonal([ "an", "a" ], [ "an", "a" ])
#--> 1composed from the signature, run for this pageCheckProperty
(no comment in the source: the name reads as a sentence) check propertyin the section checking methodsno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.CheckProperty("an", [ "an", "a" ])
#--> 0composed from the signature, run for this pageCheckPattern
(no comment in the source: the name reads as a sentence) check patternin the section checking methodsno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.CheckPattern("an", [ "an", "a" ])
#--> 1composed from the signature, run for this pageCheckDeterminant
(no comment in the source: the name reads as a sentence) check determinantin the section checking methodsno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.CheckDeterminant([ "an", "a" ], [ "an", "a" ])
#--> 1composed from the signature, run for this pageCheckSum
(no comment in the source: the name reads as a sentence) check sumin the section checking methodsno extension
ExtractParts
part extractionno extension
IsSymmetric
part extractionno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.IsSymmetric([ "an", "a" ])
#--> 0composed from the signature, run for this pageIsDiagonal
part extractionno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.IsDiagonal([ "an", "a" ])
#--> 0composed from the signature, run for this pageIsIdentity
part extractionno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.IsIdentity([ "an", "a" ])
#--> 0composed from the signature, run for this pageMatchedParts
(no comment in the source: the name reads as a sentence) matched partsin the section query methodsno extension
(no comment in the source: the name reads as a sentence) size 1 examples runin the section query methods
oMx = new stzMatrex("{shape(square)}")
aMatrix = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]
oMx.Match(aMatrix)
? @@( oMx.Size() )
#--> [ 4, 4 ]library testno extension(no comment in the source: the name reads as a sentence) properties 1 examples runin the section query methodsno extension
Matrix
(no comment in the source: the name reads as a sentence) matrixin the section query methodsno extension
Tokens
(no comment in the source: the name reads as a sentence) tokensin the section query methodsno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? @@( o1.Tokens() )
#--> [ [ [ "type", "property" ], [ "value", "symmetric" ], [ "constraints", [ ] ], [ "min", 1 ], [ "max", 1 ], [ "negated", 1 ] ] ]composed from the signature, run for this page(no comment in the source: the name reads as a sentence) pattern 1 examples runin the section query methods
oMx = new stzMatrex("{size(3x3) & property(identity)}")
? oMx.Pattern()
#--> {size(3x3) & property(identity)}library testno extensionSetTarget
(no comment in the source: the name reads as a sentence) set targetin the section query methodsno extension
Explain
(no comment in the source: the name reads as a sentence) explainin the section query methodsno extension
MatchingMatrices
(no comment in the source: the name reads as a sentence) matching matricesalso written: MatchingMatricesInin the section advanced query methodsno extension
FindMatchingMatrices
filtering operationalso written: FilterMatrices · FindMatchingMatricesInin the section advanced query methodsno extension
(no comment in the source: the name reads as a sentence) count matching matrices 1 examples runalso written: CountMatchingMatricesInin the section advanced query methodsno extension
(no comment in the source: the name reads as a sentence) first matching matrix 1 examples runalso written: FirstMatchingMatrixInin the section advanced query methodsno extension
(no comment in the source: the name reads as a sentence) find first matching matrix 1 examples runalso written: FindFirstMatchingMatrixInin the section advanced query methodsno extension
(no comment in the source: the name reads as a sentence) matches none 1 examples runalso written: MatchesNoneInin the section advanced query methods
oMx = new stzMatrex("{property(symmetric)}")
aMatrices = [
[[1, 2], [3, 4]],
[[5, 6], [7, 8]]
]
? oMx.MatchesNone(:In = aMatrices)
#--> 0library testno extension(no comment in the source: the name reads as a sentence) matches all 1 examples runalso written: MatchesAllInin the section advanced query methodsno extension
pattern constraint 1 examples runno extension
RemoveConstraint
pattern constraintno extension
SimilarityScore
matrix comparison methodsalso written: SimilarityScoreBetweenno extension
MostSimilarMatrix
matrix comparison methodsno extension
FindMostSimilarMatrix
matrix comparison methodsno extension
AnalyzeMatches
statistical analysisno extension
CommonProperties
statistical analysisno extension
EnableDebug
debug methodsno extension
DisableDebug
debug methodsno extension
SetDebug
debug methodsno extension
IsNumeric
helper methodsno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.IsNumeric("an")
#--> 0composed from the signature, run for this pageAnd_
pattern combinationno extension
Andd
pattern combinationno extension
Or_
pattern combinationno extension
Not_
pattern combinationno extension
ToJSON
serializationno extension
TokensToJSON
serializationno extension
TokenToJSON
serializationno extension
composed example
o1 = new stzMatrex("{@!property(symmetric)}")
? o1.TokenToJSON([ "an", "a" ])
#--> {"an":"a"}composed from the signature, run for this page
