How to get L1-norm of the Vector?
Đang mở
- Ngôn ngữ chính
- Java
- Star
- 6.8k
- Fork
- 1.6k
- Merge trung bình
- 44 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
Hello,
Now I initialize a PSVector with 5 \*10 (rows*dims) by stating
`val den = PSVector.dense(10,5);`
`val local = den.pull(0);`
`local.norm()` -- the output result shows that norm() is to calculate the L2-norm of the first row of the pulled vector local.
Could you please teach me how to implement calculating the L1-norm of a vector. Thanks a lot.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.