public GaNumMapTrilinearHash SetBasisBladesMap(int id1, int id2, int id3, IGaNumMultivector value) { Debug.Assert(ReferenceEquals(value, null) || value.VSpaceDimension == TargetVSpaceDimension); _basisBladesMaps[id1, id2, id3] = value.Compactify(true); return(this); }
public GaNumMapUnilinearHash SetBasisBladeMap(int basisBladeId, IGaNumMultivector targetMv) { Debug.Assert(ReferenceEquals(targetMv, null) || targetMv.VSpaceDimension == TargetVSpaceDimension); _basisBladeMaps[basisBladeId] = targetMv.Compactify(true); return(this); }
public GaNumMapBilinearTree SetBasisBladesMap(int id1, int id2, IGaNumMultivector targetMv) { Debug.Assert(ReferenceEquals(targetMv, null) || targetMv.VSpaceDimension == TargetVSpaceDimension); targetMv = targetMv.Compactify(true); if (ReferenceEquals(targetMv, null)) { return(this); } BasisBladesMapTree.SetLeafValue((ulong)id1, (ulong)id2, targetMv); return(this); }