Skip to content

**** ****

for my bad memories..

Posts Tagged ‘vector’

[태그:] vector

c++의 std::vector 는 메모리에 저정하는데 저장하기 어려운 많은 양의 데이타는.. 파일로 저장해 놓으면 좋을 듯.. 바로 File Vector 가 std::vector 쓰듯이 쓰면 파일로 저장을 함.. https://github.com/keean/File-Vector/ File-Vector-master.zip 코드에서.. ftruncate을 ftruncate64 로 고치면 대용량의 파일도 지원..

[태그:] vector

진행중인 프로그램의 변수들을 파일로 저장하는 기능을 구현중인데.. vector의 크기가 너무 크다보니.. 이걸 파일로 그냥 저장하면 용량이.. 너무 커짐.. 그래서 시간 대비 압축 효율이 좋으면 저장된 파일도 작으니.. 좋고해서.. 테스트해봄.. 7z의 lzma 알고리즘 사용. raw 데이타 저장/ 압축후 저장 압축된 벡터를 저장하고 있는 파일 사이즈.. 약 55배의 시간이 더 드나.. 50배의 용량을 줄일수있음.. 수치상으로는 시간이 55배 […]

[태그:] vector

이미 요소의 갯수를 알고 있을때의 속도 테스트를 해봄.. 테스트 비교는 Raw Array, C로 구현된 Vector (https://github.com/goldsborough/vector), C++ FBVctor (https://github.com/facebook/folly/blob/master/folly/docs/FBVector.md), C++ Standard Vector 결과는 Raw Array 가 가장 빠름.

[태그:] vector

홈페이지: http://www.netlib.org/lapack/ 가장 대표적이고 가잘 빠르다고 소문난 포트란 90 버전으로 작성된 선형 대수 라이브러리. 많은 선형대수 라이브러리들이 LAPACK을 참조하고 있다고함. LAPACK은 C 바인딩도 자체적으로 지원하며, BLAS 라이브러가 내장되어있음. LAPACK is written in Fortran 90 and provides routines for solving systems of simultaneous linear equations, least-squares solutions of linear systems of equations, eigenvalue problems, and singular […]

[태그:] vector

홈페이지: http://arma.sourceforge.net/ C++ 용 매트릭스 연산 라이브러리. 사용하기 쉽고 빠른것이 장점이다. Armadillo is an open-source C++ linear algebra library (matrix maths) aiming towards a good balance between speed and ease of use. Integer, floating point and complex numbers are supported, as well as a subset of trigonometric and statistics functions. 이런 느낌의 코드. 다운로드: 2.4.2

[태그:] vector

홈페이지: http://librsvg.sourceforge.net/ 벡터 그래픽 포맷 SVG를 취급하는 라이브러리. In simple terms, librsvg is a component used within software applications to enable support for SVG-format scalable graphics. In contrast to raster formats, scalable vector graphics provide users and artists a way to create, view, and provide imagery that is not limited to the pixel or dot […]

[태그:] vector

아래의 코드들은 wxWidgets와의 조합이며, wxEVT_PAINT 이벤트내에서 작성하면 될것이다. MinGW로 테스트 되었다. 아래의 코드는 cairo의 경우이다. 아래의 코드는 cairomm의 경우이다.

[태그:] vector

libglu 라이브러리중 linked list인 ls** 함수들과 hash table인 st_** 함수들을 조합하면 STL의 vector 클래스를 흉내낼 수 있다. 사내 프로젝트에서도 자주 이용하는 편이다. 아래는 mingw로 간단하게 테스트해본 코드이다.