Difference between revisions of "Z^3 Array Manipulation Member Functions"
Jump to navigation
Jump to search
Line 51: | Line 51: | ||
| [[Array.add()|add ]] || Thing || Add Thing to Array | | [[Array.add()|add ]] || Thing || Add Thing to Array | ||
|- | |- | ||
− | | [[Array.addcolumn()|addcolumn ]] || NumberOfColumns || | + | | [[Array.addcolumn()|addcolumn ]] || NumberOfColumns || Add specified number of columns to the array |
|- | |- | ||
| [[Array_Row_Column_Modify_Functions|addrow ]] || NumberOfRows || | | [[Array_Row_Column_Modify_Functions|addrow ]] || NumberOfRows || | ||
Line 57: | Line 57: | ||
| [[Array.addsequence()|addsequence ]] || InFront, StartFrom, OptionalSequenceArray || | | [[Array.addsequence()|addsequence ]] || InFront, StartFrom, OptionalSequenceArray || | ||
|- | |- | ||
− | | [[Array.adjoint()|adjoint ]] || Array || | + | | [[Array.adjoint()|adjoint ]] || Array || Adjoint of the matrix |
|- | |- | ||
− | | [[Array.aggregate()|aggregate ]] || Columns,Function, Params || | + | | [[Array.aggregate()|aggregate ]] || Columns,Function, Params || Apply functions to columns with parameters given |
|- | |- | ||
| [[Array.any()|any ]] || Count || | | [[Array.any()|any ]] || Count || | ||
Line 89: | Line 89: | ||
| [[Array.cartesianproduct()|cartesianproduct ]] || IsWithoutFlatten || | | [[Array.cartesianproduct()|cartesianproduct ]] || IsWithoutFlatten || | ||
|- | |- | ||
− | | [[Array.cdr()|cdr ]] || || | + | | [[Array.cdr()|cdr ]] || || Tail of an array |
|- | |- | ||
− | | [[Array.cell()|cell ]] || Row, Column, Width, Height || | + | | [[Array.cell()|cell ]] || Row, Column, Width, Height || Cells with the specified addresses |
|- | |- | ||
− | | [[Array.cell()|cells ]] || || | + | | [[Array.cell()|cells ]] || || Cells with the specified addresses. Same as [[Array.cell()|cell ]] |
|- | |- | ||
− | | [[Array.checktype()|checktype ]] || TypeArray, ForceCheckOnVariables || | + | | [[Array.checktype()|checktype ]] || TypeArray, ForceCheckOnVariables || Check if elements are of the type/typearray mentioned |
|- | |- | ||
− | | [[Array.chunks()|chunks ]] || ChunkSize || | + | | [[Array.chunks()|chunks ]] || ChunkSize || Chunks of size from array. [[Array.pieces()|pieces ]] gives pieces of size starting with each element which is different |
|- | |- | ||
− | | [[Array.ci()|ci ]] || || | + | | [[Array.ci()|ci ]] || || Apply a function to column indices (same as Array.__$ in "ic" mode) |
|- | |- | ||
| [[Array.clean()|clean ]] || Expression, ReplaceWith || | | [[Array.clean()|clean ]] || Expression, ReplaceWith || | ||
Line 109: | Line 109: | ||
| [[Array.clearrepeats()|clearrepeats ]] || || | | [[Array.clearrepeats()|clearrepeats ]] || || | ||
|- | |- | ||
− | | [[Array.clone()|clone ]] || || | + | | [[Array.clone()|clone ]] || || Clone an array |
|- | |- | ||
| [[Array_Concat_Functions|colconcat ]] || || | | [[Array_Concat_Functions|colconcat ]] || || | ||
Line 165: | Line 165: | ||
| [[Array.data()|data ]] || || | | [[Array.data()|data ]] || || | ||
|- | |- | ||
− | | [[Array.dc()|dc ]] || || | + | | [[Array.dc()|dc ]] || || Delete columns specified |
|- | |- | ||
| [[Array.deal()|deal ]] || Within, ManyInEach || | | [[Array.deal()|deal ]] || Within, ManyInEach || | ||
|- | |- | ||
− | | [[Array.deepcopy()|deepcopy ]] || || | + | | [[Array.deepcopy()|deepcopy ]] || || Deep copy of an array |
|- | |- | ||
− | | [[Array_Row_Column_Modify_Functions|deletecolumn ]] || Where | | + | | [[Array_Row_Column_Modify_Functions|deletecolumn ]] || Where | Delete a specified or last column |
|- | |- | ||
− | | [[Array_Row_Column_Modify_Functions|deleterow ]] || Where || | + | | [[Array_Row_Column_Modify_Functions|deleterow ]] || Where || Delete a specified or last row |
|- | |- | ||
− | | [[Array.det()|det ]] || Array || | + | | [[Array.det()|det ]] || Array || Determinant of an array |
|- | |- | ||
− | | [[Array.determinant()|determinant ]] || || | + | | [[Array.determinant()|determinant ]] || || Determinant of an array |
|- | |- | ||
− | | [[Array.dim()|dim ]] || || | + | | [[Array.dim()|dim ]] || Dimensions || Create a new array with the dimensions given |
|- | |- | ||
| [[Array.div()|div ]] || Thing || Divide Thing to Array | | [[Array.div()|div ]] || Thing || Divide Thing to Array | ||
Line 185: | Line 185: | ||
| [[Array.divide|divide ]] || Thing || Integer Divide Thing to Array | | [[Array.divide|divide ]] || Thing || Integer Divide Thing to Array | ||
|- | |- | ||
− | | [[Array.dr()|dr ]] || | + | | [[Array.dr()|dr ]] || Which || Delete a specified or last column |
|- | |- | ||
| [[Array.drop()|drop ]] || || | | [[Array.drop()|drop ]] || || | ||
Line 487: | Line 487: | ||
| [[Array.reversesort()|reversesort ]] || Function || | | [[Array.reversesort()|reversesort ]] || Function || | ||
|- | |- | ||
− | | [[Array.ri()|ri ]] || || | + | | [[Array.ri()|ri ]] || || Apply a function to row indices (same as Array.__$ in "ir" mode) |
|- | |- | ||
| [[Array.rotate()|rotate ]] || NumberOfSteps || | | [[Array.rotate()|rotate ]] || NumberOfSteps || |
Revision as of 11:20, 4 February 2020
ARRAY FUNCTIONS
A listing of the Array functions are given below:
Function name Parameter
Function Name | Parameters | Notes |
---|---|---|
$ | Apply functions to each element of array | |
$$ | Apply functions to each row of array | |
$$$ | Apply functions to each column of array | |
$$F | Function/Array of Functions | Append results of functions to each row |
$A | Parameter | Get attributes from an array of objects |
$C | Function/Array of Functions, Optional Parameters, Column index to apply | Apply a function with parameters to a column |
$CELLS | Function/Array of Functions, Optional Parameters, Row/Column Area indices to apply | Apply a function with parameters to a cell area |
$d | Get the diagonal of an array | |
$diag | Same as get the diagonal of an array | |
$dth | Get the dth diagonal of an array | |
$R | Function/Array of Functions, Optional Parameters, Row index to apply | Apply a function with parameters to a row |
$X | Combines two arrays using an across operation. Reverse is .X$ | |
$x | Same as $X | |
$_ | Apply a function to the entire array as one aggregate call | |
__$ | Mode, Functions, Parameters | Using a mode (value, valuebyrow, index etc), apply a function to the cells with parameters |
ac | ColCount | Add columns |
accumulate | Total | Accumulate each element with the next and give a cumulative result. Start from Total if need be. |
accumulatewith | CumulateFunction, CurrentResult | Accumulate each element with the next using the function and give a cumulative result. Start from Total if need be. |
across | OtherArray, Function | Apply the functions to each combination of cells in the two arrays |
add | Thing | Add Thing to Array |
addcolumn | NumberOfColumns | Add specified number of columns to the array |
addrow | NumberOfRows | |
addsequence | InFront, StartFrom, OptionalSequenceArray | |
adjoint | Array | Adjoint of the matrix |
aggregate | Columns,Function, Params | Apply functions to columns with parameters given |
any | Count | |
appendfunction | Function | |
ar | ||
async | Iterator, CallBack | |
atindex | ||
atnode | Function, SubtractByArray, ScaleByArray, DoNotShowIndices | |
backward | Function, StartValue | |
bindcolumn | ||
branch | ||
branchvalues | ||
c | ||
calci | ||
car | ||
cartesianproduct | IsWithoutFlatten | |
cdr | Tail of an array | |
cell | Row, Column, Width, Height | Cells with the specified addresses |
cells | Cells with the specified addresses. Same as cell | |
checktype | TypeArray, ForceCheckOnVariables | Check if elements are of the type/typearray mentioned |
chunks | ChunkSize | Chunks of size from array. pieces gives pieces of size starting with each element which is different |
ci | Apply a function to column indices (same as Array.__$ in "ic" mode) | |
clean | Expression, ReplaceWith | |
clear | FillWith | |
clearcopy | FillWith | |
clearrepeats | ||
clone | Clone an array | |
colconcat | ||
colcount | ||
collect | ||
collectasvector | ||
collectwhile | ||
collectwhileasvector | ||
column | ||
columnconcat | ||
columns | ||
compare | ||
concatall | LimitArray, IncludeEdges | |
converge | Function, NumberOfIterations, Accuracy, Converge | |
copy | ||
core | ||
count | FirstLevelOnly | |
crosstab | RowSet, ColSet,PageSet,DataSet | |
cube | ||
cumcolumn | ||
cumcolumns | ||
cumcolumnswith | ||
cumcolumnwith | ||
cumrow | ||
cumrows | ||
cumrowswith | ||
cumrowwith | ||
cumulate | ||
data | ||
dc | Delete columns specified | |
deal | Within, ManyInEach | |
deepcopy | Deep copy of an array | |
deletecolumn | Delete a specified or last column | |
deleterow | Where | Delete a specified or last row |
det | Array | Determinant of an array |
determinant | Determinant of an array | |
dim | Dimensions | Create a new array with the dimensions given |
div | Thing | Divide Thing to Array |
divide | Thing | Integer Divide Thing to Array |
dr | Which | Delete a specified or last column |
drop | ||
dropwhile | ||
dropwhileasvector | ||
eighteenth | ||
eighth | ||
eleventh | ||
equal | Array, CheckLength, StartFrom | |
equalvalues | Array, CheckLength, StartFrom | |
eval | ||
except | ||
exec | ||
explode | StartIndex, By, RecurseTillLevel | |
extract | ||
few | ||
fifteenth | Function | |
fifth | ||
fillwith | ||
filtermatches | MatchIdenticalMatrix, OnlyMatches | |
filteroncolumn | Condition, ExtractColumns, FilterOnColumn | |
filteroncondition | TakeDropOrAllFlag, Function, Parameter | |
filteronrow | Condition, ExtractColumns, FilterOnColumn | |
findcellref | Values | |
first | Count | |
firstelement | Count | |
firsthalf | ||
fixat | Index, Fix | |
fjoin | HeadLength, JoinString | |
flatten | ||
flip | ||
flipparts | ||
fold | AtFoldValue, AtReverseFoldValue | |
foldl | Function, StartSeed | |
foldr | Function, StartSeed | |
forward | Function, StartValue | |
fourteenth | ||
fourth | ||
fourths | ||
funcjoin | HeadLength, FindString, FirstString, MidString, LastString | |
gettype | ||
graph | Mode | |
graphin | ||
half | ||
halves | ||
hderef | Array | |
head | ||
headings | ||
hindex | ||
hundredth | ||
i | PreviousArray | |
ic | ||
ids | ||
implode | RecurseTillLevel | |
inc | ||
include | ||
indices | Function, SubtractByArray, ScaleByArray, DoNotShowIndices, RowArray | |
injoin | JoinWith | |
insert | Value, AfterLastFlag | |
insertcolumn | Index, NumberOfColumns | |
insertrow | Index, NumberOfRows | |
inverse | Array | |
ir | ||
is | Thing, IsNot | |
is1d | ||
is2d | ||
isFalse | ||
isfalse | ||
islikelytype | ||
isnotnull | ||
isnull | ||
isTrue | ||
istrue | ||
istype | ||
j | ||
joincolumnswith | ArrayOfJoinCharacters, IsRepeat | |
joinrowswith | ArrayOfJoinCharacters, IsRepeat | |
joinwith | ||
jq | ||
keep | ||
last | Count | |
lastelement | Count | |
list | ||
lookup | ||
make | ||
make1to2d | ReplaceOriginal | |
makecore | ||
makekeyarray | Recursive | |
maplist | fun | |
mapper | Function | |
maprow | Function | |
mask | ||
match | Expression | |
matchcolumn | Expression, Column | |
matchindex | Expression, IndexThenFromMatch | |
matchrow | Expression, Row | |
matchvalue | Expression, IndexThenFromMatch | |
merge | OtherArray, Function | |
mergecolumns | OtherArray | |
mergeio | ||
mergerows | ||
mid | From, Count | |
millionth | ||
mod | Thing | Mod Thing to Array |
multiply | Thing | Multiply Thing to Array |
nicejoin | JoinString, EndString, SubArrayString | |
nineteenth | ||
nineth | ||
nodeindex | ||
notinclude | Item | |
notwithinlimits | LimitArray, IncludeEdges | |
nth | Nth, Count | |
ntimes | Function, NumberOfIterations, Accuracy, Converge | |
nullifyobjects | Recursive | |
numbers | ForceCheckOnVariables | |
o | ||
objects | ||
of | ||
op | Op with another number using units (Supported Operators %, <, >, <=, >=, ==, !=,===, FEQ Floating Equals) | |
otherthan | ArrayWithElementsToExclude | |
pack | ||
pad | Length, PadString | |
pair | Value, OnRight | |
pairmatch | AtFoldValue, AtReverseFoldValue, StartFrom | |
partitiononcondition | TakeDropOrAllFlag, Function, Parameter | |
parts | NumberOfParts, SpecificPart | |
pastefolds | MidOnly | |
pick | StyleString, JoinString | |
pieces | Width, Function | |
pip | ||
pipall | ||
pipallwithslice | ||
plot | ||
prefix | ||
primitives | ||
printf | ||
r | ||
rand | ||
random | Base,Numbers | |
remove | ||
removeByVal | Value | |
removeindices | ||
removewith | ||
repeatntimes | Function, NumberOfIterations, Accuracy, Converge | |
replace | ExpressionArrayOrValues, ReplaceWith | |
replicate | Count | |
rest | Start, Count | |
result | ||
reverselevel | Level | |
reversepip | ||
reversesort | Function | |
ri | Apply a function to row indices (same as Array.__$ in "ir" mode) | |
rotate | NumberOfSteps | |
rotatecolumns | NumberOfSteps | |
rotaterows | NumberOfSteps | |
row | ||
rowconcat | OtherArray | |
rowcount | ||
rowlengths | Function | |
rowpush | OtherArray | |
rows | ||
rslice | ||
second | ||
secondhalf | ||
seq | StartIndex, By | |
set | ||
setaxis | Axis, ColumnValues | |
setcolumn | Column, ColumnValues | |
setheadings | ||
setrow | Row, Array | |
setunit | ||
seventeenth | ||
seventh | ||
shiftlevel | Level, NumberOfTimes | |
shuffle | ||
sixteenth | ||
sixth | ||
size | ||
size2d | ||
slices | SliceExpression | |
slides | ||
some | ||
sortrecursively | ||
sortwith | ||
specialprint | Trimmed,TabLevel | |
spliteach | SplitExpression, RetainSplitterAlsoInResult | |
splitwhile | ||
splitwhileasvector | ||
stringlist | ||
subtract | Thing | Subtract Thing to Array |
suchthat | ||
suchthatasvector | ||
suffix | ||
t | ||
table | ||
tablelookup | RowValueMatch, ColumnValueMatch | |
tail | ||
takewhile | ||
takewhileasvector | ||
tenth | ||
third | ||
thirds | ||
thirteenth | ||
thousandth | ||
tofunctions | ||
toobjectformat | ||
totree | ||
transpose | IncludeHeader | |
truefalse | IsCheckTrueFunctionList, IsCheckFalseFunctionList, DoFlattenFirst | |
twelfth | ||
twentieth | ||
twod | ||
type | ||
uncrosstab | UptoColumn | |
unimplode | RecurseTillLevel | |
unimplodeleaf | ||
unitsof | ||
unwrapleaf | ||
unzip | ||
value | Function | |
where | Term | |
withinlimits | LimitArray, IncludeEdges | |
withouttail | ||
X$ | Combines two arrays using an across operation in reverse. Opposite of .$X | |
x$ | FunctionArray, OffsetArray, ScaleArray, GiveIndicesAlso,DoCentering | Apply a function array to the array, with offsets and scales applied, with indices or centering as requested |
xy | Apply a function array to the array, with offsets and scales applied, with indices | |
xypanel | FunctionArray, OffsetArray, ScaleArray, GiveIndicesAlso | Apply a function array to the array, with offsets and scales applied, with indices, centered by default at 0. Useful to create contour panels with inputs to apply functions on. |
z3 | ||
zero | ValueInstead, PreserveStructure | Zero or replace values in an array |
zip | OtherArray | Combine two arrays into one zipped array |
ZJSON | ||
zoompip |