Skip to content

Commit

Permalink
prevent output
Browse files Browse the repository at this point in the history
  • Loading branch information
num3RIK committed Sep 5, 2023
1 parent 7e3e495 commit f6f396a
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion SO3Fun/@SO3VectorField/cross.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
%

if isa(SO3VF2, 'vector3d') && length(SO3VF2)==1
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2)
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2);
SO3VF = SO3VectorFieldHandle(@(rot) cross(SO3VF1.eval(rot),SO3VF2),SO3VF1.CS,SO3VF1.SS,SO3VF1.tangentSpace);
if SO3VF2.antipodal
SO3VF = abs(SO3VF);
Expand Down
2 changes: 1 addition & 1 deletion SO3Fun/@SO3VectorField/dot.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
%

if isa(SO3VF2, 'vector3d')
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2)
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2);
SO3F = SO3FunHandle(@(rot) dot(SO3VF1.eval(rot),SO3VF2),SO3VF1.CS,SO3VF1.SS);
if SO3VF2.antipodal
SO3F = abs(SO3F);
Expand Down
2 changes: 1 addition & 1 deletion SO3Fun/@SO3VectorField/ensureCompatibleSymmetries.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function ensureCompatibleSymmetries(SO3VF,varargin)
SO3VF = SO3FunHarmonic(0,SO3VF.SRight,SO3VF.SLeft);
end
if nargin>1 && isa(varargin{1},'SO3VectorField')
ensureCompatibleTangentSpaces(SO3VF,varargin{1})
ensureCompatibleTangentSpaces(SO3VF,varargin{1});
varargin{1} = SO3FunHarmonic(0,varargin{1}.SRight,varargin{1}.SLeft);
end

Expand Down
2 changes: 1 addition & 1 deletion SO3Fun/@SO3VectorField/plus.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
end

if isnumeric(SO3VF2) || isa(SO3VF2,'vector3d')
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2)
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2);
SO3VF = SO3VectorFieldHandle(@(rot) SO3VF1.eval(rot) + SO3VF2,SO3VF1.CS,SO3VF1.SS,SO3VF1.tangentSpace);
return
end
Expand Down
2 changes: 1 addition & 1 deletion SO3Fun/@SO3VectorField/times.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
end

if isnumeric(SO3VF2) || isa(SO3VF2,'vector3d')
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2)
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2);
SO3VF = SO3VectorFieldHandle(@(rot) SO3VF1.eval(rot) .* SO3VF2 ,SO3VF1.CS,SO3VF1.SS,SO3VF1.tangentSpace);
return
end
Expand Down
2 changes: 1 addition & 1 deletion SO3Fun/@SO3VectorFieldHarmonic/cross.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
%

if isa(SO3VF2, 'vector3d') && length(SO3VF2)==1
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2)
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2);
xyz = repmat(SO3VF2.xyz,size(SO3VF1.SO3F.fhat,1),1);
SO3VF = SO3VF1;
SO3VF.SO3F.fhat = cross(SO3VF1.SO3F.fhat,xyz,2);
Expand Down
2 changes: 1 addition & 1 deletion SO3Fun/@SO3VectorFieldHarmonic/dot.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
%

if isa(SO3VF2, 'vector3d')
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2)
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2);
SO3F = SO3VF1.SO3F;
v = SO3VF2;
SO3F = reshape(sum( SO3F .* reshape(v.xyz.',[3,size(v)]),1),size(v));
Expand Down
2 changes: 1 addition & 1 deletion SO3Fun/@SO3VectorFieldHarmonic/plus.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%

if isa(SO3VF1,'vector3d')
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2)
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2);
SO3VF1 = SO3VF1.xyz.';
end
if isnumeric(SO3VF1) || isa(SO3VF1,'SO3Fun')
Expand Down
2 changes: 1 addition & 1 deletion SO3Fun/@SO3VectorFieldHarmonic/rdivide.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


if isnumeric(SO3VF1) || isa(SO3VF1,'vector3d')
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2)
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2);
SO3VF = SO3VectorFieldHandle(@(rot) SO3VF1 ./ SO3VF2.eval(rot),SO3VF2.SRight,SO3VF2.SLeft,SO3VF2.tangentSpace);
SO3VF = SO3VectorFieldHarmonic(SO3VF, 'bandwidth', min(getMTEXpref('maxSO3Bandwidth'),2*SO3VF2.bandwidth));
return
Expand Down
2 changes: 1 addition & 1 deletion SO3Fun/@SO3VectorFieldHarmonic/times.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%

if isa(SO3VF1,'vector3d')
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2)
ensureCompatibleTangentSpaces(SO3VF1,SO3VF2);
SO3VF1 = SO3VF1.xyz.';
end
if isnumeric(SO3VF1) || isa(SO3VF1,'SO3Fun')
Expand Down

0 comments on commit f6f396a

Please sign in to comment.