SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.analysis.function.matrix
Class R1toConstantMatrix

java.lang.Object
  extended by com.numericalmethod.suanshu.analysis.function.matrix.R1toMatrix
      extended by com.numericalmethod.suanshu.analysis.function.matrix.R1toConstantMatrix
All Implemented Interfaces:
Function, RntoMatrix

public class R1toConstantMatrix
extends R1toMatrix

This class represents a matrix function that always returns the same constant matrix.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.numericalmethod.suanshu.analysis.function.Function
Function.EvaluationException
 
Constructor Summary
R1toConstantMatrix(Matrix A)
          Construct a constant matrix function.
 
Method Summary
 Matrix evaluate(double x)
          Compute f(x).
 
Methods inherited from class com.numericalmethod.suanshu.analysis.function.matrix.R1toMatrix
dimension4Domain, dimension4Range, evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

R1toConstantMatrix

public R1toConstantMatrix(Matrix A)
Construct a constant matrix function.

Parameters:
A - the constant matrix
Method Detail

evaluate

public Matrix evaluate(double x)
Description copied from class: R1toMatrix
Compute f(x).

Specified by:
evaluate in class R1toMatrix
Parameters:
x - x
Returns:
f(x)

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.