Download include/eigen/Eigen/QtAlignedMalloc from adfa5456/FastRobustICP: direct link, hf CLI and curl.
- Browser
- Download file 900 Bytes
-
https://huggingface.co/datasets/adfa5456/FastRobustICP/resolve/main/include/eigen/Eigen/QtAlignedMalloc
- Command line
-
hf download hf://datasets/adfa5456/FastRobustICP/include/eigen/Eigen/QtAlignedMalloc
-
curl -L -o QtAlignedMalloc https://huggingface.co/datasets/adfa5456/FastRobustICP/resolve/main/include/eigen/Eigen/QtAlignedMalloc
900 Bytes
| // This file is part of Eigen, a lightweight C++ template library | |
| // for linear algebra. | |
| // | |
| // This Source Code Form is subject to the terms of the Mozilla | |
| // Public License v. 2.0. If a copy of the MPL was not distributed | |
| // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
| void *qMalloc(std::size_t size) | |
| { | |
| return Eigen::internal::aligned_malloc(size); | |
| } | |
| void qFree(void *ptr) | |
| { | |
| Eigen::internal::aligned_free(ptr); | |
| } | |
| void *qRealloc(void *ptr, std::size_t size) | |
| { | |
| void* newPtr = Eigen::internal::aligned_malloc(size); | |
| std::memcpy(newPtr, ptr, size); | |
| Eigen::internal::aligned_free(ptr); | |
| return newPtr; | |
| } | |