~ubuntu-branches/ubuntu/utopic/octave-quaternion/utopic

« back to all changes in this revision

Viewing changes to inst/@quaternion/mldivide.m

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot, Rafael Laboissiere
  • Date: 2013-05-20 13:44:12 UTC
  • mfrom: (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130520134412-48om2w3toyjytax8
Tags: 2.0.2-2
[ Rafael Laboissiere ]
debian/copyright: Use the octave-maintainers mailing list as upstream
contact

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
## Copyright (C) 2010   Lukas F. Reichlin
 
1
## Copyright (C) 2010, 2012   Lukas F. Reichlin
2
2
##
3
3
## This program is free software: you can redistribute it and/or modify
4
4
## it under the terms of the GNU General Public License as published by
18
18
 
19
19
## Author: Lukas Reichlin <lukas.reichlin@gmail.com>
20
20
## Created: May 2010
21
 
## Version: 0.1
 
21
## Version: 0.2
22
22
 
23
23
function q = mldivide (a, b)
24
24
 
 
25
  if (nargin != 2)
 
26
    error ("quaternion: mldivide: this is a binary operator");
 
27
  endif
 
28
 
25
29
  q = inv (a) * b;
26
30
 
27
31
endfunction