features.py

computeFeatures_torch(I1, I2, I3):

Transforms the three principal invariants of the Cauchy-Green deformation tensor into mixed-deviatoric-volumetric invariants and returns them in a concatenated array.

  • J=det(F)=I31/2
  • I1~=J2/3I1
  • I2~=J4/3I2

Input Arguments

  • I1 - 1st invariant

  • I2 - 2nd invariant

  • I3 - 3rd invariant

Output Arguments

  • x - [I1~,I2~,J]

getNumberOfFeatures():

Compute number of features.

Input Arguments

  • none

Output Arguments

  • features.shape[1] - number of features