mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
ctranspose: Simplify method selection
This commit is contained in:
parent
e1f0791574
commit
088ac99f65
@ -30,17 +30,8 @@ function factory (type, config, load, typed) {
|
||||
*/
|
||||
var ctranspose = typed('ctranspose', {
|
||||
|
||||
'Array': function (x) {
|
||||
return conj( transpose( x ) );
|
||||
},
|
||||
|
||||
'Matrix': function (x) {
|
||||
return conj( transpose( x ) );
|
||||
},
|
||||
|
||||
// scalars
|
||||
'any': function (x) {
|
||||
return conj(x);
|
||||
return conj( transpose( x ) );
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user