public class Pow extends DenseMatrix
double precision, we represent the result as a product of
\[
A^{n} = \mathrm{base}^{\mathrm{scale}} \cdot B;
\]
E.g.,
\[
A^{n} = (10^{100})^{\mathrm{scale}} \cdot B = 10^{100 \cdot \mathrm{scale}} \cdot B
\]
All entries in B can be represented in double precision.| Constructor and Description |
|---|
Pow(Matrix A,
int n)
Construct the power matrix \(A^{n}\) so that
\[
A^{n} = (10^{100})^{\mathrm{scale}} \cdot B
\]
|
Pow(Matrix A,
int n,
double base)
Construct the power matrix \(A^{n}\) so that
\[
A^{n} = \mathrm{base}^{\mathrm{scale}} \cdot B
\]
|
| 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.
|
add, deepCopy, equals, get, getColumn, getColumn, getRow, getRow, hashCode, minus, multiply, multiply, nCols, nRows, ONE, opposite, scaled, set, setColumn, setRow, t, toDense, toString, ZEROpublic Pow(Matrix A, int n, double base)
A - a matrixn - a positive integer exponentbase - the base to scale down the product to avoid overflowpublic Pow(Matrix A, int n)
A - a matrixn - a positive integer exponentpublic double base()
public int scale()
public ImmutableMatrix B()
Copyright © 2010-2026 NM Group. All Rights Reserved.