arrays.shaped vocabulary
Factor handbook > Vocabulary index


Summary
arrays.shaped vocabulary

Meta-data
Authors:Doug Coleman


Words

Tuple classes
ClassSuperclassSlots
2d-expected tupleshaped
abnormal-shape tupleshape
block-array tupleshaped shape
col-array shaped-array
no-abnormally-shaped-arrays tupleunderlying shape
no-negative-shape-components tupleshape
row-array shaped-array
row-traverser tupleshaped-array index
shape-mismatch tupleshaped0 shaped1
shaped-array tupleunderlying shape
shaped-bounds-error tupleseq shape
transposed tupleshaped-array
underlying-shape-mismatch tupleunderlying shape
uniform-shape tupleshape


Parsing words
WordSyntax
sa{


Generic words
WordStack effect
>col-array( array -- shaped-array )
>row-array( array -- shaped-array )
>shaped-array( array -- shaped-array )
array-replace( object -- shape )
check-underlying-shape( underlying shape -- underlying shape )
next-index( object -- index )
shape( array -- shape )
shape-capacity( shape -- n )
wrap-shape( object -- shape )


Ordinary words
WordStack effect
2d-expected( shaped -- * )
2d?( shape -- ? )
<abnormal-shape>( shape -- abnormal-shape )
<block-array>( underlying shape -- obj )
<col-array>( underlying shape -- shaped-array )
<row-array>( underlying shape -- shaped-array )
<shaped-array>( underlying shape -- shaped-array )
<uniform-shape>( shape -- uniform-shape )
broadcast-shape-matches?( sa broadcast-shape -- ? )
broadcastable?( sa0 sa1 -- ? )
calculate-column-major-index( seq shape -- i )
calculate-row-major-index( seq shape -- i )
check-2d( shaped -- shaped )
check-shape( shaped-array shaped-array -- shaped-array shaped-array )
check-shape-domain( seq -- seq )
column-length( shape -- n )
decreasing( shape -- shaped-array )
diagonal?( coord -- ? )
each-row( shaped-array quot -- )
flat?( array -- ? )
identity-matrix( n -- shaped )
increasing( shape -- shaped-array )
iteration-indices( shaped -- seq )
lower( shape obj -- shaped )
make-shaped-array( underlying shape class -- shaped-array )
map-diagonal( shaped quot -- shaped )
map-lower( shaped quot -- shaped )
map-shaped-index( shaped quot -- shaped )
map-strict-lower( shaped quot -- shaped )
map-strict-upper( shaped quot -- shaped )
map-upper( shaped quot -- shaped )
n*shaped( a b -- c )
ndim( array -- n )
no-abnormally-shaped-arrays( underlying shape -- * )
no-negative-shape-components( shape -- * )
ones( shape -- shaped-array )
output-shape( sa0 sa1 -- shape )
pad-shapes( sa0 sa1 -- sa0' sa1' )
repeated-shaped( shape element -- shaped-array )
reshape( shaped-array shape -- array )
row-length( shape -- n )
set-shaped-column-major( obj seq shaped -- )
set-shaped-row-major( obj seq shaped -- )
shape-mismatch( shaped0 shaped1 -- * )
shaped*.( a b -- c )
shaped*n( a b -- c )
shaped+( a b -- c )
shaped-( a b -- c )
shaped-array>array( shaped-array -- array )
shaped-bounds-check( seq shaped -- seq shaped )
shaped-bounds-error( seq shape -- * )
shaped-cos( a -- b )
shaped-each( .. sa quot -- )
shaped-like( shaped-array shape -- array )
shaped-map( .. sa quot -- sa' )
shaped-map!( .. sa quot -- sa )
shaped-shaped-binary-op( shaped0 shaped1 quot -- c )
shaped-sin( a -- b )
shaped-unary-op( shaped quot -- )
strict-lower( shape obj -- shaped )
strict-upper( shape obj -- shaped )
transposed-shape( shaped-array -- shape )
underlying-shape-mismatch( underlying shape -- * )
upper( shape obj -- shaped )
zeros( shape -- shaped-array )


Class predicate words
WordStack effect
2d-expected?( object -- ? )
abnormal-shape?( object -- ? )
block-array?( object -- ? )
col-array?( object -- ? )
no-abnormally-shaped-arrays?( object -- ? )
no-negative-shape-components?( object -- ? )
row-array?( object -- ? )
row-traverser?( object -- ? )
shape-mismatch?( object -- ? )
shaped-array?( object -- ? )
shaped-bounds-error?( object -- ? )
transposed?( object -- ? )
underlying-shape-mismatch?( object -- ? )
uniform-shape?( object -- ? )


Files