public class Pow extends DenseMatrix
double
precision, we represent the result as a product of
An = basescale * B;E.g.,
An = 1e100scale * B = 10100 * scale * BAll entries in B can be represented in
double
precision.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
|
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.
|
public Pow(Matrix A, int n, double base)
An = basescale * B
A
- a matrixn
- a positive integer exponentbase
- the base to scale down the product to avoid overflowpublic Pow(Matrix A, int n)
An = (1e100)scale * B
A
- a matrixn
- a positive integer exponentpublic double base()
public int scale()
public ImmutableMatrix B()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.