Example #1
0
        /// <inheritdoc/>
        public override IRowEquation CreateEquation(int row, UnknownMap mapper, ISparseSolver <double> solver)
        {
            var x = _nx.CreateEquation(row, mapper, solver);
            var y = _ny.CreateEquation(row, mapper, solver);

            return(new RowEquation(x, y, solver, row));
        }
Example #2
0
        /// <inheritdoc/>
        public override IRowEquation CreateEquation(int row, UnknownMap mapper, ISparseSolver <double> solver)
        {
            var a = _a.CreateEquation(row, mapper, solver);
            var b = _b.CreateEquation(row, mapper, solver);

            return(new RowEquation(a, b, solver, row));
        }
Example #3
0
 /// <inheritdoc/>
 public override IRowEquation CreateEquation(int row, UnknownMap mapper, ISparseSolver <double> solver)
 {
     if (!_unknown.IsFixed)
     {
         return(new RowEquation(_unknown, solver, row, mapper.Map(_unknown)));
     }
     return(new ConstantRowEquation(_unknown, solver, row));
 }
Example #4
0
 public override IRowEquation CreateEquation(int row, UnknownMap mapper, ISparseSolver <double> solver)
 => new RowEquation(_a.CreateEquation(row, mapper, solver), solver, row);
 /// <inheritdoc/>
 public override IRowEquation CreateEquation(int row, UnknownMap mapper, ISparseSolver <double> solver) => new RowEquation(row, solver, _value);
Example #6
0
 /// <inheritdoc/>
 public override IRowEquation CreateEquation(int row, UnknownMap mapper, ISparseSolver <double> solver)
 {
     return(new RowEquation(
                _a.CreateEquation(row, mapper, solver),
                _b.CreateEquation(row, mapper, solver)));
 }