Table of Contents
Matrix
Matrix module for DataFrame, providing basic mathematical matrix computations.
Parameters
dfDataFrame An instance of DataFrame.
isCommutative
Check if two DataFrames are commutative, if both have the same dimensions.
Parameters
dfDataFrame The second DataFrame to check.reverseBoolean Revert the second DataFrame before the comparison. (optional, defaultfalse)
Examples
df.matrix.isCommutative(df2)
Returns Boolean True if they are commutative, else false.
add
Provide an elements pairwise addition of two DataFrames having the same dimensions.
Parameters
dfDataFrame The second DataFrame to add.
Examples
df.matrix.add(df2)
Returns DataFrame A new DataFrame resulting to the addition two DataFrames.
product
Provide a scalar product between a number and a DataFrame.
Parameters
numberNumber The number to multiply.
Examples
df.matrix.product(6)
Returns DataFrame A new DataFrame resulting to the scalar product.
dot
Multiply one DataFrame n x p and a second p x n.
Parameters
dfDataFrame The second DataFrame to multiply.
Examples
df.matrix.dot(df)
Returns DataFrame A new n x n DataFrame resulting to the product of two DataFrame.