Uses 652K of libraries. Click here for Pure Java version (49L/1K).
1 | !include once #1035331 // EJML Include (Matrix library) |
2 | |
3 | static DMatrixRMaj ejmlVectorToMatrix(double... vector) { |
4 | int n = vector.length; |
5 | var matrix = new DMatrixRMaj(n, 1); |
6 | for i to n: |
7 | matrix.set(i, 0, vector[i]); |
8 | ret matrix; |
9 | } |
Began life as a copy of #1035364
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035365 |
Snippet name: | ejmlVectorToMatrix |
Eternal ID of this version: | #1035365/4 |
Text MD5: | 50a286e018f0ed6abb633bdef6351ed8 |
Transpilation MD5: | 7d2fb205752f4eb35e695f9fb67650fa |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-05-02 13:16:39 |
Source code size: | 248 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 123 / 181 |
Version history: | 3 change(s) |
Referenced in: | [show references] |