ruby-eigen 0.0.10.pre1 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +134 -0
- data/ext/eigen/eigen_wrap.cxx +8478 -302
- data/lib/eigen.rb +16 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99d2c13b0630299e21bd247678243c2816448bbc
|
4
|
+
data.tar.gz: 38280bee382f62018cb6db34a75b30dfb10d28f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22e2a41d32b8d00868a599f1f8e2985bd747d8cd5813e8bebbb94b501eeb77d4e0fd6262d2b5d5f70999ae7b1eb89282c30687aa17056face2879e3977dd655f
|
7
|
+
data.tar.gz: e0ffb6438b707522f14d1420380997ab4f640cccf7d00bbf7bbd6f8a9fab75971c6d1f8b267b685cd06122de592dc9a54226efd1db593bcbb1542e3b35e1b75f
|
data/README.md
CHANGED
@@ -19,3 +19,137 @@ For MacPorts
|
|
19
19
|
|
20
20
|
$ gem install rake-compiler
|
21
21
|
$ gem install ruby-eigen
|
22
|
+
|
23
|
+
|
24
|
+
## Classes
|
25
|
+
|
26
|
+
Eigen::MatrixDouble
|
27
|
+
Eigen::MatrixDoubleRef
|
28
|
+
Eigen::MatrixComplex
|
29
|
+
Eigen::MatrixComplexRef
|
30
|
+
Eigen::VectorDouble
|
31
|
+
Eigen::VectorComplex
|
32
|
+
Eigen::MatrixBool
|
33
|
+
Eigen::VectorBool
|
34
|
+
Eigen::EigenRuntimeError
|
35
|
+
|
36
|
+
MatrixDoubleRef instances, returned by MatrixDouble#ref,
|
37
|
+
share their memory with the original MatrixDouble instances.
|
38
|
+
|
39
|
+
```rb
|
40
|
+
require "eigen"
|
41
|
+
include Eigen
|
42
|
+
m = MatrixComplex.new(3,3)
|
43
|
+
m.setOnes
|
44
|
+
m_ref = m.ref(0..1,0..1)
|
45
|
+
m_ref.setConstant(1i)
|
46
|
+
p m == MatrixComplex[[1i,1i,1],[1i,1i,1],[1,1,1]] #=> true
|
47
|
+
```
|
48
|
+
|
49
|
+
## Class Methods
|
50
|
+
|
51
|
+
MatrixDouble.new(rows, cols)
|
52
|
+
MatrixDouble[*arrys]
|
53
|
+
MatrixDouble.hstack(*matrices)
|
54
|
+
MatrixDouble.vstack(*matrices)
|
55
|
+
MatrixDouble.block_diagonal(*matrices)
|
56
|
+
|
57
|
+
## Instance Methods
|
58
|
+
|
59
|
+
MatrixDouble#*
|
60
|
+
MatrixDouble#+
|
61
|
+
MatrixDouble#-
|
62
|
+
MatrixDouble#-@
|
63
|
+
MatrixDouble#/
|
64
|
+
MatrixDouble#[i,j]
|
65
|
+
MatrixDouble#[range0,range1]
|
66
|
+
MatrixDouble#[]=(i, j, num)
|
67
|
+
MatrixDouble#[]=(i, j, matrix)
|
68
|
+
|
69
|
+
MatrixDouble#ref(range, range)
|
70
|
+
|
71
|
+
MatrixDouble#to_a
|
72
|
+
MatrixDouble#replicate
|
73
|
+
|
74
|
+
MatrixDouble#adjoint
|
75
|
+
MatrixDouble#conjugate
|
76
|
+
MatrixDouble#transpose
|
77
|
+
|
78
|
+
MatrixDouble#col(i)
|
79
|
+
MatrixDouble#cols
|
80
|
+
MatrixDouble#row(i)
|
81
|
+
MatrixDouble#rows
|
82
|
+
|
83
|
+
MatrixDouble#real
|
84
|
+
|
85
|
+
MatrixDouble#cwiseAbs(other)
|
86
|
+
MatrixDouble#cwiseAbs2(other)
|
87
|
+
MatrixDouble#cwiseEqual(other)
|
88
|
+
MatrixDouble#cwiseInverse
|
89
|
+
MatrixDouble#cwiseMax(other)
|
90
|
+
MatrixDouble#cwiseMin(other)
|
91
|
+
MatrixDouble#cwiseNotEqual(other)
|
92
|
+
MatrixDouble#cwiseProduct(other)
|
93
|
+
MatrixDouble#cwiseQuotient(other)
|
94
|
+
MatrixDouble#cwiseSqrt
|
95
|
+
|
96
|
+
MatrixDouble#determinant
|
97
|
+
MatrixDouble#diagonal
|
98
|
+
|
99
|
+
MatrixDouble#getBottomLeftCorner(rows,cols)
|
100
|
+
MatrixDouble#getBottomRightCorner(rows,cols)
|
101
|
+
MatrixDouble#getTopLeftCorner(rows,cols)
|
102
|
+
MatrixDouble#getTopRightCorner(rows,cols)
|
103
|
+
MatrixDouble#setBottomLeftCorner(matrix)
|
104
|
+
MatrixDouble#setBottomRightCorner(matrix)
|
105
|
+
MatrixDouble#setTopLeftCorner(matrix)
|
106
|
+
MatrixDouble#setTopRightCorner(matrix)
|
107
|
+
|
108
|
+
MatrixDouble#middleCols
|
109
|
+
MatrixDouble#middleRows
|
110
|
+
|
111
|
+
MatrixDouble#setConstant(num)
|
112
|
+
MatrixDouble#setIdentity
|
113
|
+
MatrixDouble#setOnes
|
114
|
+
MatrixDouble#setRandom
|
115
|
+
MatrixDouble#setZero
|
116
|
+
|
117
|
+
MatrixDouble#hasNaN
|
118
|
+
MatrixDouble#inverse
|
119
|
+
MatrixDouble#isApprox
|
120
|
+
MatrixDouble#isApproxToConstant
|
121
|
+
MatrixDouble#isConstant
|
122
|
+
MatrixDouble#isDiagonal
|
123
|
+
MatrixDouble#isIdentity
|
124
|
+
MatrixDouble#isLowerTriangular
|
125
|
+
MatrixDouble#isMuchSmallerThan
|
126
|
+
MatrixDouble#isOnes
|
127
|
+
MatrixDouble#isUpperTriangular
|
128
|
+
MatrixDouble#isZero
|
129
|
+
|
130
|
+
MatrixDouble#maxCoeff
|
131
|
+
MatrixDouble#minCoeff
|
132
|
+
|
133
|
+
MatrixDouble#norm
|
134
|
+
MatrixDouble#normalize
|
135
|
+
MatrixDouble#operatorNorm
|
136
|
+
|
137
|
+
MatrixDouble#prod
|
138
|
+
|
139
|
+
MatrixDouble#reverse
|
140
|
+
|
141
|
+
MatrixDouble#sum
|
142
|
+
|
143
|
+
MatrixDouble#tril
|
144
|
+
MatrixDouble#triu
|
145
|
+
|
146
|
+
MatrixDouble#eigenvalues
|
147
|
+
MatrixDouble#fullPivHouseholderQR
|
148
|
+
MatrixDouble#fullPivLu
|
149
|
+
|
150
|
+
MatrixDouble#ldlt
|
151
|
+
MatrixDouble#llt
|
152
|
+
MatrixDouble#lu
|
153
|
+
|
154
|
+
MatrixDouble#svd
|
155
|
+
|