コード例 #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));
        }
コード例 #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));
        }
コード例 #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));
 }
コード例 #4
0
ファイル: Exp.cs プロジェクト: hanyeah/SimpleCircuit
 public override IRowEquation CreateEquation(int row, UnknownMap mapper, ISparseSolver <double> solver)
 => new RowEquation(_a.CreateEquation(row, mapper, solver), solver, row);
コード例 #5
0
 /// <inheritdoc/>
 public override IRowEquation CreateEquation(int row, UnknownMap mapper, ISparseSolver <double> solver) => new RowEquation(row, solver, _value);
コード例 #6
0
ファイル: Addition.cs プロジェクト: hanyeah/SimpleCircuit
 /// <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)));
 }