[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [analitza/aucahuasi/matrixctrs] analitza/commands: More documentation.
From: Percy_Camilo_Triveño_Aucahuasi <percy.camilo.ta () gmail ! com>
Date: 2014-06-01 1:12:00
Message-ID: E1WquJc-0006PB-EN () scm ! kde ! org
[Download RAW message or body]
Git commit 1f47eb3b614231cb42fe9621c7b7da5f4df7ccb2 by Percy Camilo Triveño Aucahuasi.
Committed on 01/06/2014 at 01:10.
Pushed by aucahuasi into branch 'aucahuasi/matrixctrs'.
More documentation.
M +0 -1 analitza/commands/matrixcommands.cpp
M +5 -2 analitza/commands/matrixcommands.h
http://commits.kde.org/analitza/1f47eb3b614231cb42fe9621c7b7da5f4df7ccb2
diff --git a/analitza/commands/matrixcommands.cpp b/analitza/commands/matrixcommands.cpp
index bcc82c2..d42317f 100644
--- a/analitza/commands/matrixcommands.cpp
+++ b/analitza/commands/matrixcommands.cpp
@@ -114,7 +114,6 @@ Expression MatrixCommand::operator()(const QList< Analitza::Expression >& args)
if (firstVector->size() > 0) { // we will check this for all vectors later
const int firstVectorSize = firstVector->size();
- const Analitza::Object::ObjectType firstVectorElementType = firstVector->at(0)->type();
bool iscorrect = true; // assumes all are rows
Analitza::Matrix *matrix = new Analitza::Matrix();
diff --git a/analitza/commands/matrixcommands.h b/analitza/commands/matrixcommands.h
index ba8905b..cc6c5a4 100644
--- a/analitza/commands/matrixcommands.h
+++ b/analitza/commands/matrixcommands.h
@@ -118,8 +118,11 @@ public:
* The second way returns a vector of the elements on the nth diagonal of
* a given matrix.
*
- * k>0 is above the main diagonal
- * k<0 is below the main
+ * \code diag(A, n) \endcode
+ * where n>0 means is above the main diagonal of A and n<0 is below the main
+ * diagonal.
+ *
+ * Examples:
*
* \code diag(matrix{matrixrow{1,2}, matrixrow{3,4}}, 0) \endcode
* is equivalent to
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic