36#ifndef STK_ILEASTSQUARE_H
37#define STK_ILEASTSQUARE_H
56template<
class Derived>
69 if (
b.beginRows() !=
b.beginCols())
71 if (
a.beginRows() !=
a.beginCols())
73 if (
a.beginRows() !=
b.beginRows())
80 template<
class OtherArrayB,
class OtherArrayA>
84 if (
b.beginRows() !=
b.beginCols())
86 if (
a.beginRows() !=
a.beginCols())
88 if (
a.beginRows() !=
b.beginRows())
115 template<
class VecWeights>
116 bool run(VecWeights
const& weights);
129template<
class Derived>
132 if (
a_.empty()||
b_.empty()) {
return true;}
137template<
class Derived>
138template<
class Weights>
141 if (
a_.empty()||
b_.empty()) {
return true;}
143 return(this->
asDerived().runImpl(weights));
In this file we define and implement utilies class and method for the Algebra project.
#define STKRUNTIME_ERROR_NO_ARG(Where, Error)
This file include all the other header files of the project Sdk.
base class for template evaluation expressions and visitors.
bool run(VecWeights const &weights)
Compute the weighted Least-Square solution.
ILeastSquare(ExprBase< OtherArrayB > const &b, ExprBase< OtherArrayA > const &a)
template constructor
hidden::AlgebraTraits< Derived >::ArrayB ArrayB
hidden::AlgebraTraits< Derived >::ArrayA ArrayA
virtual ~ILeastSquare()
Destructor.
Integer const & rank() const
virtual bool run()
Compute the Least-Square solution.
ILeastSquare(ArrayB const &b, ArrayA const &a, bool isBref=false, bool isAref=false)
Default constructor.
IRecursiveTemplate()
constructor.
Derived & asDerived()
static cast : return a reference of this with a cast to the derived class.
IRunnerBase()
default constructor
int Integer
STK fundamental type of integer values.
The namespace STK is the main domain space of the Statistical ToolKit project.
traits class for the algebra methods.