コード例 #1
0
 /// Puts the two jacobian parts into the 'insrow' row of a sparse matrix,
 /// where both portions of the jacobian are shifted in order to match the
 /// offset of the corresponding ChVariable.The same is done
 /// on the 'insrow' column, so that the sparse matrix is kept symmetric.
 public override void Build_Cq(ref ChSparseMatrix storage, int insrow)
 {
     if (variables_a.IsActive())
     {
         storage.PasteMatrix(Cq_a.matrix, insrow, variables_a.GetOffset());
     }
     if (variables_b.IsActive())
     {
         storage.PasteMatrix(Cq_b.matrix, insrow, variables_b.GetOffset());
     }
 }
コード例 #2
0
 public void Build_Cq(ref ChSparseMatrix storage, int insrow)
 {
     if (variables.IsActive())
     {
         storage.PasteMatrix(Cq.matrix, insrow, variables.GetOffset());
     }
 }