@@ -2813,8 +2813,7 @@ def __init__(self, operand, coordsys, out=None):
28132813
28142814 @staticmethod
28152815 def _output_basis (input_basis ):
2816- out = input_basis ._new_k (input_basis .k + 1 )
2817- return out
2816+ return input_basis .derivative_basis (1 )
28182817
28192818 def check_conditions (self ):
28202819 """Check that operands are in a proper layout."""
@@ -2962,8 +2961,7 @@ def __init__(self, operand, coordsys, out=None):
29622961
29632962 @staticmethod
29642963 def _output_basis (input_basis ):
2965- out = input_basis ._new_k (input_basis .k + 1 )
2966- return out
2964+ return input_basis .derivative_basis (1 )
29672965
29682966 def check_conditions (self ):
29692967 """Check that operands are in a proper layout."""
@@ -3164,8 +3162,7 @@ def __init__(self, operand, index=0, out=None):
31643162
31653163 @staticmethod
31663164 def _output_basis (input_basis ):
3167- out = input_basis ._new_k (input_basis .k + 1 )
3168- return out
3165+ return input_basis .derivative_basis (1 )
31693166
31703167 def check_conditions (self ):
31713168 """Check that operands are in a proper layout."""
@@ -3225,8 +3222,7 @@ def __init__(self, operand, index=0, out=None):
32253222
32263223 @staticmethod
32273224 def _output_basis (input_basis ):
3228- out = input_basis ._new_k (input_basis .k + 1 )
3229- return out
3225+ return input_basis .derivative_basis (1 )
32303226
32313227 def check_conditions (self ):
32323228 """Check that operands are in a proper layout."""
@@ -3371,8 +3367,7 @@ def __init__(self, operand, index=0, out=None):
33713367
33723368 @staticmethod
33733369 def _output_basis (input_basis ):
3374- out = input_basis ._new_k (input_basis .k + 1 )
3375- return out
3370+ return input_basis .derivative_basis (1 )
33763371
33773372 def check_conditions (self ):
33783373 """Check that operands are in a proper layout."""
@@ -3515,8 +3510,7 @@ def __init__(self, operand, index=0, out=None):
35153510
35163511 @staticmethod
35173512 def _output_basis (input_basis ):
3518- out = input_basis ._new_k (input_basis .k + 1 )
3519- return out
3513+ return input_basis .derivative_basis (1 )
35203514
35213515 def check_conditions (self ):
35223516 """Check that operands are in a proper layout."""
@@ -3718,8 +3712,7 @@ def __init__(self, operand, coordsys, out=None):
37183712
37193713 @staticmethod
37203714 def _output_basis (input_basis ):
3721- out = input_basis ._new_k (input_basis .k + 2 )
3722- return out
3715+ return input_basis .derivative_basis (2 )
37233716
37243717 def check_conditions (self ):
37253718 """Check that operands are in a proper layout."""
@@ -3827,8 +3820,7 @@ def __init__(self, operand, coordsys, out=None):
38273820
38283821 @staticmethod
38293822 def _output_basis (input_basis ):
3830- out = input_basis ._new_k (input_basis .k + 2 )
3831- return out
3823+ return input_basis .derivative_basis (2 )
38323824
38333825 def check_conditions (self ):
38343826 """Check that operands are in a proper layout."""
0 commit comments