public AstValueMultivector SubspaceToMultivector(string subspaceName, Func <AstFrameBasisBlade, string> basisBladeToVarName) { var subspaceInfo = Subspace(subspaceName); if (subspaceInfo.IsNullOrInvalid()) { return(null); } var pattern = GMacMultivectorBinding.Create(subspaceInfo); return(pattern.ToValue(basisBladeToVarName)); }
public AstValueMultivector SubspaceToMultivector(string subspaceName, StringSequenceTemplate varNameTemplate) { var subspaceInfo = Subspace(subspaceName); if (subspaceInfo.IsNullOrInvalid()) { return(null); } var pattern = GMacMultivectorBinding.Create(subspaceInfo); return(pattern.ToValue(varNameTemplate)); }
public MvClassData(AstFrame frame, int id, string name) { ClassId = id; ClassName = name; Frame = frame; ClassBinding = GMacMultivectorBinding.Create(frame.FrameMultivector); if (id < 1) { return; } foreach (var grade in ClassGrades) { ClassBinding.BindKVectorToVariables(grade); } }