# SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.algebra.linear.matrix.doubles.operation

## Class Pow

• ### Constructor Summary

Constructors
Constructor and Description
Pow(Matrix A, int n)
Construct the power matrix An so that An = (1e100)scale * B
Pow(Matrix A, int n, double base)
Construct the power matrix An so that An = basescale * B
• ### Method Summary

All Methods
Modifier and Type Method and Description
ImmutableMatrix B()
Get the double precision matrix.
double base()
Get the radix or base of the coefficient.
int scale()
Get the exponential of the coefficient.
• ### Methods inherited from class com.numericalmethod.suanshu.algebra.linear.matrix.doubles.matrixtype.dense.DenseMatrix

add, deepCopy, equals, get, getColumn, getColumn, getRow, getRow, hashCode, minus, multiply, multiply, nCols, nRows, ONE, opposite, scaled, set, setColumn, setRow, t, toDense, toString, ZERO
• ### Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait
• ### Constructor Detail

• #### Pow

public Pow(Matrix A,
int n,
double base)
Construct the power matrix An so that
An = basescale * B
Parameters:
A - a matrix
n - a positive integer exponent
base - the base to scale down the product to avoid overflow
• #### Pow

public Pow(Matrix A,
int n)
Construct the power matrix An so that
An = (1e100)scale * B
Parameters:
A - a matrix
n - a positive integer exponent
• ### Method Detail

• #### base

public double base()
Get the radix or base of the coefficient.
Returns:
the base
• #### scale

public int scale()
Get the exponential of the coefficient.
Returns:
the exponential of the coefficient
• #### B

public ImmutableMatrix B()
Get the double precision matrix.
Returns:
the double precision matrix